Skip to content

Commit

Permalink
Try to fix closeAllDatabases SERVER-5101 SERVER-4947 SERVER-5072
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeard0531 committed Feb 28, 2012
1 parent 59885c8 commit 9cf0cc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mongo/db/pdfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,7 @@ namespace mongo {
bool DatabaseHolder::closeAll( const string& path , BSONObjBuilder& result , bool force ) {
log() << "DatabaseHolder::closeAll path:" << path << endl;
d.dbMutex.assertWriteLocked();
getDur().commitNow(); // bad things happen if we close a DB with outstanding writes

map<string,Database*>& m = _paths[path];
_size -= m.size();
Expand Down

0 comments on commit 9cf0cc2

Please sign in to comment.