Previous Topic

Next Topic

Correct CTSTATUS.FCS Location with CTSTATUS_SIZE Configuration Option

The CTSTATUS_SIZE keyword allows control over the maximum size of the server CTSTATUS.FCS status log file with options to limit the number of archived files. Several observations were made when using the CTSTATUS_SIZE option with the LOCAL_DIRECTORY server configuration option.

  • A new CTSTATUS.FCS file was created in the server executable directory;
  • The FREOPENS.FCS stream file was not deleted on server shutdown due to a wrong path specification;
  • When multiple threads were writing to the file, messages could be missing from the file;
  • Logging of error messages with a non-zero error code prevented creation of a new status log file;
  • A potential threading deadlock when the DIAGNOSTICS LOWL_FILE_IO keyword was also specified.

In the internal logging functions, the filenames and paths are now properly considered to ensure the log and stream files are created in the appropriate and expected locations. Additional modifications were done to ensure proper thread synchronizations to secure server integrity in the unlikely case of potential thread timing cases.