summaryrefslogtreecommitdiff
path: root/src/mongo/db/db.h
diff options
context:
space:
mode:
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);
}