summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/counttests.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2014-10-03 17:25:41 -0400
committerGeert Bosch <geert@mongodb.com>2014-10-03 17:25:41 -0400
commitf2daf8addd4ef391c135a3da2a1472777405ba06 (patch)
tree0e53c98e5ca8a317cd90e75ba5c3cff66cae5ad1 /src/mongo/dbtests/counttests.cpp
parent6d8ef4551dfb1e76b480602e8f1d6224656e5841 (diff)
downloadmongo-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/counttests.cpp')
-rw-r--r--src/mongo/dbtests/counttests.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/dbtests/counttests.cpp b/src/mongo/dbtests/counttests.cpp
index b643c30b9c5..31dabc13a97 100644
--- a/src/mongo/dbtests/counttests.cpp
+++ b/src/mongo/dbtests/counttests.cpp
@@ -43,10 +43,9 @@ namespace CountTests {
class Base {
public:
- Base() : _lk(_txn.lockState(), nsToDatabaseSubstring(ns()), newlm::MODE_X),
- _context(&_txn, ns()),
- _client(&_txn) {
-
+ Base() : lk(_txn.lockState(), ns()),
+ _context(&_txn, ns()),
+ _client(&_txn) {
_database = _context.db();
{
WriteUnitOfWork wunit(&_txn);
@@ -105,7 +104,7 @@ namespace CountTests {
OperationContextImpl _txn;
- Lock::DBLock _lk;
+ Lock::DBWrite lk;
Client::Context _context;