0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

only do dur stuff with dbMutex

This commit is contained in:
Mathias Stearn 2010-12-16 12:48:48 -05:00
parent 24dd7ff666
commit adb706e20e

View File

@ -216,12 +216,13 @@ namespace mongo {
inline void MongoMutex::_releasedWriteLock() {
#if defined(_DEBUG)
dur::_debugCheckLastDeclaredWrite();
if (this == &dbMutex)
dur::_debugCheckLastDeclaredWrite();
#endif
}
inline void MongoMutex::_acquiredWriteLock() {
if( _remapPrivateViewRequested ) {
if( this == &dbMutex && _remapPrivateViewRequested ) {
dur::REMAPPRIVATEVIEW();
dassert( !_remapPrivateViewRequested );
}