From ddbf7adfac08bea3f2f7eced247e87906f9ebc44 Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Fri, 17 Dec 2010 18:59:50 -0500 Subject: [PATCH] There is one and only one MongoMutex instance. Not sure what I was thinking... --- db/mongomutex.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db/mongomutex.h b/db/mongomutex.h index af4fecc611a..cdf589a9c86 100644 --- a/db/mongomutex.h +++ b/db/mongomutex.h @@ -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 ); }