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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • None
    • Storage Execution
    • 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

            backlog-server-execution Backlog - Storage Execution Team
            charlie.page@10gen.com Charlie Page
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: