Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16872

Log "dbexit: really exiting now" after all locks needed to shutdown are acquired

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Operating System:
      ALL

      Description

          void exitCleanly( ExitCode code ) {
      ...
              log() << "dbexit: really exiting now";
              if ( c ) c->shutdown();
              ::_exit(rc);
          }
      

      c->shutdown requires locking a mutex. It is possible the process is not really exiting now after logging "dbexit: really exiting now". This line should only be printed when exit is guaranteed to be imminent. I suggest moving to after the if statement.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: