0
0
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:
dwight 2011-01-16 11:09:40 -05:00
parent a3c5fd0642
commit 1f8cb82448

View File

@ -403,7 +403,7 @@ namespace mongo {
void recover() { void recover() {
// we use a lock so that exitCleanly will wait for us // we use a lock so that exitCleanly will wait for us
// to finish (or at least to notice what is up and stop) // to finish (or at least to notice what is up and stop)
readlock lk; writelock lk;
_recover(); // throws on interruption _recover(); // throws on interruption
} }