[SERVER-16872] Log "dbexit: really exiting now" after all locks needed to shutdown are acquired Created: 15/Jan/15  Updated: 06/Dec/22  Resolved: 15/Nov/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Charlie Page Assignee: Backlog - Storage Execution Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Eric Milkie [ 15/Nov/16 ]

message no longer exists

Generated at Thu Feb 08 03:42:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.