diff options
author | Geert Bosch <geert@mongodb.com> | 2014-10-03 17:25:41 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2014-10-03 17:25:41 -0400 |
commit | f2daf8addd4ef391c135a3da2a1472777405ba06 (patch) | |
tree | 0e53c98e5ca8a317cd90e75ba5c3cff66cae5ad1 /src/mongo/dbtests/dbhelper_tests.cpp | |
parent | 6d8ef4551dfb1e76b480602e8f1d6224656e5841 (diff) | |
download | mongo-f2daf8addd4ef391c135a3da2a1472777405ba06.tar.gz |
Revert "SERVER-14668: Replace uses of DBWrite lock with DBLock"
This reverts commit da599844c97ef6d290c03e073a9bafe41c1a914e.
Conflicts:
src/mongo/db/repl/repl_coordinator_external_state_impl.cpp
src/mongo/dbtests/counttests.cpp
src/mongo/dbtests/querytests.cpp
Diffstat (limited to 'src/mongo/dbtests/dbhelper_tests.cpp')
-rw-r--r-- | src/mongo/dbtests/dbhelper_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/dbhelper_tests.cpp b/src/mongo/dbtests/dbhelper_tests.cpp index 70ab52c878c..4801b711a1c 100644 --- a/src/mongo/dbtests/dbhelper_tests.cpp +++ b/src/mongo/dbtests/dbhelper_tests.cpp @@ -62,7 +62,7 @@ namespace mongo { { // Remove _id range [_min, _max). - Lock::DBLock lk(txn.lockState(), nsToDatabaseSubstring(ns), newlm::MODE_X); + Lock::DBWrite lk(txn.lockState(), ns); WriteUnitOfWork wunit(&txn); Client::Context ctx(&txn, ns ); |