diff options
author | Geert Bosch <geert@mongodb.com> | 2014-09-29 17:53:20 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2014-09-29 17:54:36 -0400 |
commit | 8e83e72512fcb8eb8f06987927766c0b77cea23e (patch) | |
tree | 21167749db25a7124a528157f20d1f7a3be4beee /src/mongo/db/exec/stagedebug_cmd.cpp | |
parent | 57af98451c500c5d8112cfc5e75917a0e561069f (diff) | |
download | mongo-8e83e72512fcb8eb8f06987927766c0b77cea23e.tar.gz |
BF-532: Revert "SERVER-14668: Replace uses of DBWrite lock with DBLock"
This reverts commit ae333bc94a7d89d3220dcae9579fcaf68aa2e290.
This reverts commit 962f959a09b63aa0482d7e0c9bad89363d1e1194.
Diffstat (limited to 'src/mongo/db/exec/stagedebug_cmd.cpp')
-rw-r--r-- | src/mongo/db/exec/stagedebug_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/stagedebug_cmd.cpp b/src/mongo/db/exec/stagedebug_cmd.cpp index 9a86fe82da8..0f804e890ee 100644 --- a/src/mongo/db/exec/stagedebug_cmd.cpp +++ b/src/mongo/db/exec/stagedebug_cmd.cpp @@ -121,7 +121,7 @@ namespace mongo { // TODO A write lock is currently taken here to accommodate stages that perform writes // (e.g. DeleteStage). This should be changed to use a read lock for read-only // execution trees. - Lock::DBLock lk(txn->lockState(), dbname, newlm::MODE_X); + Lock::DBWrite lk(txn->lockState(), dbname); Client::Context ctx(txn, dbname); // Make sure the collection is valid. |