mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
don't clean up Client in static shutdown as its not safe to lock
This commit is contained in:
parent
176dad642a
commit
a08904e886
@ -122,10 +122,13 @@ namespace mongo {
|
||||
error() << "Client::shutdown not called: " << _desc << endl;
|
||||
}
|
||||
|
||||
scoped_lock bl(clientsMutex);
|
||||
if ( ! _shutdown )
|
||||
clients.erase(this);
|
||||
delete _curOp;
|
||||
if ( ! inShutdown() ) {
|
||||
// we can't clean up safely once we're in shutdown
|
||||
scoped_lock bl(clientsMutex);
|
||||
if ( ! _shutdown )
|
||||
clients.erase(this);
|
||||
delete _curOp;
|
||||
}
|
||||
}
|
||||
|
||||
bool Client::shutdown() {
|
||||
|
Loading…
Reference in New Issue
Block a user