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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Storage Execution
    • ALL

          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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            charlie.page@10gen.com Charlie Page (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: