diff options
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r-- | src/mongo/db/instance.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp index e5ed820ca50..2ad8a6f94fd 100644 --- a/src/mongo/db/instance.cpp +++ b/src/mongo/db/instance.cpp @@ -621,7 +621,7 @@ namespace mongo { UpdateExecutor executor(&request, &op.debug()); uassertStatusOK(executor.prepare()); - Lock::DBLock lk(txn->lockState(), ns.db(), newlm::MODE_X); + Lock::DBWrite lk(txn->lockState(), ns.ns()); Client::Context ctx(txn, ns ); UpdateResult res = executor.execute(ctx.db()); @@ -655,7 +655,7 @@ namespace mongo { DeleteExecutor executor(&request); uassertStatusOK(executor.prepare()); - Lock::DBLock lk(txn->lockState(), ns.db(), newlm::MODE_X); + Lock::DBWrite lk(txn->lockState(), ns.ns()); Client::Context ctx(txn, ns); long long n = executor.execute(ctx.db()); @@ -914,7 +914,7 @@ namespace mongo { uassertStatusOK(status); } - Lock::DBLock lk(txn->lockState(), nsString.db(), newlm::MODE_X); + Lock::DBWrite lk(txn->lockState(), ns); // CONCURRENCY TODO: is being read locked in big log sufficient here? // writelock is used to synchronize stepdowns w/ writes |