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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/db.h b/src/mongo/db/db.h
index 63b1e38bbfb..32cadc2ac1c 100644
--- a/src/mongo/db/db.h
+++ b/src/mongo/db/db.h
@@ -50,7 +50,7 @@ namespace mongo {
struct dbtemprelease {
Client::Context * _context;
scoped_ptr<Lock::TempRelease> tr;
- dbtemprelease() {
+ dbtemprelease(LockState* lockState) {
const Client& c = cc();
_context = c.getContext();
verify( Lock::isLocked() );
@@ -60,7 +60,7 @@ namespace mongo {
if ( _context ) {
_context->unlocked();
}
- tr.reset(new Lock::TempRelease);
+ tr.reset(new Lock::TempRelease(lockState));
verify( c.curop() );
c.curop()->yielded();
}