diff options
author | Dwight <dwight@10gen.com> | 2012-03-16 16:25:24 -0400 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2012-03-16 16:25:24 -0400 |
commit | 1881e047713e5c365c1429f963bcd63202fdb82c (patch) | |
tree | 68b6a2452569f82411925e89d17cb3e8503e023d /src/mongo/db/d_concurrency.h | |
parent | 1489d40923399d8cd6384942c3e89bf5f4c3cb7b (diff) | |
download | mongo-1881e047713e5c365c1429f963bcd63202fdb82c.tar.gz |
SERVER-4328 lock the dblock first before the toplock
Diffstat (limited to 'src/mongo/db/d_concurrency.h')
-rw-r--r-- | src/mongo/db/d_concurrency.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/d_concurrency.h b/src/mongo/db/d_concurrency.h index ab3f211e5db..085f5775fec 100644 --- a/src/mongo/db/d_concurrency.h +++ b/src/mongo/db/d_concurrency.h @@ -46,6 +46,7 @@ namespace mongo { }; // lock this database. do not shared_lock globally first, that is handledin herein. class DBWrite : boost::noncopyable { + bool prep(LockState&); void lockTop(LockState&); void lockLocal(); void lock(const string& db); @@ -58,6 +59,7 @@ namespace mongo { }; // lock this database for reading. do not shared_lock globally first, that is handledin herein. class DBRead : boost::noncopyable { + bool prep(LockState&); void lockTop(LockState&); void lockLocal(); void lock(const string& db); |