summaryrefslogtreecommitdiff
path: root/src/mongo/db/d_concurrency.h
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2012-03-16 16:25:24 -0400
committerDwight <dwight@10gen.com>2012-03-16 16:25:24 -0400
commit1881e047713e5c365c1429f963bcd63202fdb82c (patch)
tree68b6a2452569f82411925e89d17cb3e8503e023d /src/mongo/db/d_concurrency.h
parent1489d40923399d8cd6384942c3e89bf5f4c3cb7b (diff)
downloadmongo-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.h2
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);