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:
parent
24dd7ff666
commit
adb706e20e
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user