diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-05-28 13:49:34 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-06-02 22:52:46 -0400 |
commit | 8c9fcc939f9f1a2b593e606bd790cc87efd4064f (patch) | |
tree | beaa313f3e53cf72ca76aa5392946b97736ea6b3 /src/mongo/db/db.h | |
parent | 4add46aa8dd05a5c6d8af2c798eef6e9b5e4164b (diff) | |
download | mongo-8c9fcc939f9f1a2b593e606bd790cc87efd4064f.tar.gz |
SERVER-13961 Start using LockState from the OperationContext
Diffstat (limited to 'src/mongo/db/db.h')
-rw-r--r-- | src/mongo/db/db.h | 4 |
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(); } |