diff options
author | Geert Bosch <geert@mongodb.com> | 2014-10-07 12:13:21 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2014-10-09 18:21:06 -0400 |
commit | 5ea4221f81e7af9272e4e687d516bb439ef29498 (patch) | |
tree | 8bfee151ed5a434935681e17a9f6e26a8c080a33 /src/mongo/dbtests/dbhelper_tests.cpp | |
parent | ff10cf8c748997338f51de2de61520e17518758c (diff) | |
download | mongo-5ea4221f81e7af9272e4e687d516bb439ef29498.tar.gz |
SERVER-14668: Collection level locking for update path
Temporarily disable collection locking for MMAPv1.
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 3706b5dac48..a49fb91bd9f 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::DBWrite lk(txn.lockState(), ns); + Lock::DBLock lk(txn.lockState(), nsToDatabaseSubstring(ns), newlm::MODE_X); WriteUnitOfWork wunit(&txn); Client::Context ctx(&txn, ns ); |