summaryrefslogtreecommitdiff
path: root/src/mongo/db/db.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-02 16:32:25 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-06-02 22:55:05 -0400
commite5da18f2dfbd71fb997734b524e5e4306d0af550 (patch)
tree25d2d291a47414967b4f5b5974ce7be80f7ff843 /src/mongo/db/db.h
parent8c9fcc939f9f1a2b593e606bd790cc87efd4064f (diff)
downloadmongo-e5da18f2dfbd71fb997734b524e5e4306d0af550.tar.gz
SERVER-13961 Remove all 'checking' variants of dbHolder
All places which call dbHolder are verifiably under the appropriate lock, so there is no need to do checking. This allows for the Lock::isLocked check to be removed from there.
Diffstat (limited to 'src/mongo/db/db.h')
-rw-r--r--src/mongo/db/db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/db.h b/src/mongo/db/db.h
index 32cadc2ac1c..0ab445d94b6 100644
--- a/src/mongo/db/db.h
+++ b/src/mongo/db/db.h
@@ -53,7 +53,7 @@ namespace mongo {
dbtemprelease(LockState* lockState) {
const Client& c = cc();
_context = c.getContext();
- verify( Lock::isLocked() );
+ invariant(lockState->threadState());
if( Lock::nested() ) {
massert(10298 , "can't temprelease nested lock", false);
}