mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
fix a problem with _DEBUG builds only.
we have protective code that requires we are in a write lock to write to mongommf's...that code was recently fixed and made this debug situation manifest.
This commit is contained in:
parent
a3c5fd0642
commit
1f8cb82448
@ -403,7 +403,7 @@ namespace mongo {
|
||||
void recover() {
|
||||
// we use a lock so that exitCleanly will wait for us
|
||||
// to finish (or at least to notice what is up and stop)
|
||||
readlock lk;
|
||||
writelock lk;
|
||||
_recover(); // throws on interruption
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user