fix threading test

This commit is contained in:
Dwight
2011-04-06 10:56:03 -04:00
parent 23dae53f75
commit 0d2ca3e2c1
2 changed files with 3 additions and 1 deletions

View File

@@ -27,6 +27,8 @@ namespace mongo {
MongoMutex &dbMutex( *(new MongoMutex("rw:dbMutex")) );
MongoMutex::MongoMutex(const char *name) : _m(name) {
static int n;
assert( ++n == 1 ); // below releasingWriteLock we assume MongoMutex is a singleton, and uses dbMutex ref above
_remapPrivateViewRequested = false;
}