diff options
author | Dwight <dwight@10gen.com> | 2012-03-23 06:22:53 -0400 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2012-03-23 06:22:53 -0400 |
commit | c5aba00d1226eb4267028775b898f26734495092 (patch) | |
tree | 3a092b07394b6b23679926d989bab6a93ecee145 /src/mongo/db/d_concurrency.h | |
parent | da292a8d8eef9c1adc98bcd9e50a3f5eb81bb3ba (diff) | |
download | mongo-c5aba00d1226eb4267028775b898f26734495092.tar.gz |
we consider admin and local dbs candidates for nested locks. however when writing to admin you need to lock both
in this change we simply W lock the whole system on admin writes. this should make writing to auth work.
however there may be better solutions. we may be able to treat admin db as non-nested on writes period.
Diffstat (limited to 'src/mongo/db/d_concurrency.h')
-rw-r--r-- | src/mongo/db/d_concurrency.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/d_concurrency.h b/src/mongo/db/d_concurrency.h index 308f55aeba0..cb3002bd29b 100644 --- a/src/mongo/db/d_concurrency.h +++ b/src/mongo/db/d_concurrency.h @@ -83,6 +83,7 @@ namespace mongo { void lockNestable(Nestable db); void lock(const string& db); bool locked_w; + bool locked_W; SimpleRWLock *weLocked; int *ourCounter; const string what; |