0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

There is one and only one MongoMutex instance. Not sure what I was thinking...

This commit is contained in:
Mathias Stearn 2010-12-17 18:59:50 -05:00
parent a076624f2e
commit ddbf7adfac

View File

@ -215,12 +215,11 @@ namespace mongo {
}
inline void MongoMutex::_releasingWriteLock() {
if (this == &dbMutex)
dur::releasingWriteLock();
dur::releasingWriteLock();
}
inline void MongoMutex::_acquiredWriteLock() {
if( this == &dbMutex && _remapPrivateViewRequested ) {
if( _remapPrivateViewRequested ) {
dur::REMAPPRIVATEVIEW();
dassert( !_remapPrivateViewRequested );
}