• Monty's avatar
    MENT-1098 Crash during update on 10.4.17 after upgrade from 10.4.10 · 1d80e8e4
    Monty authored
    The reason for the crash was that there was not a write lock to
    protect against file rotations in the server_audit plugin after an
    audit plugin patch to changed audit mutexes to read & write locks.
    
    The fixes are:
    * Moving server_audit.c to use read & write locks (which improves
      performance).
    * Added functionality in file_logger.c to not do file rotations until
      it is allowed by the caller (done without any interface changes for
      the logging service).
    * Move checking of file size limit to server_audit.c and if it is time to
      do a rotation change the read lock to a write lock and tell file_logger
      that it is now allowed to rotate the log files.
    1d80e8e4
server_audit.c 85 KB