summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/cpuprofile.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2014-09-29 17:53:20 -0400
committerGeert Bosch <geert@mongodb.com>2014-09-29 17:54:36 -0400
commit8e83e72512fcb8eb8f06987927766c0b77cea23e (patch)
tree21167749db25a7124a528157f20d1f7a3be4beee /src/mongo/db/commands/cpuprofile.cpp
parent57af98451c500c5d8112cfc5e75917a0e561069f (diff)
downloadmongo-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/commands/cpuprofile.cpp')
-rw-r--r--src/mongo/db/commands/cpuprofile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/cpuprofile.cpp b/src/mongo/db/commands/cpuprofile.cpp
index b1c81ca3584..884e43d0c29 100644
--- a/src/mongo/db/commands/cpuprofile.cpp
+++ b/src/mongo/db/commands/cpuprofile.cpp
@@ -133,7 +133,7 @@ namespace mongo {
std::string &errmsg,
BSONObjBuilder &result,
bool fromRepl ) {
- Lock::DBLock dbXLock(txn->lockState(), db, newlm::MODE_X);
+ Lock::DBWrite dbXLock(txn->lockState(), db);
// The lock here is just to prevent concurrency, nothing will write.
Client::Context ctx(txn, db);
@@ -152,7 +152,7 @@ namespace mongo {
std::string &errmsg,
BSONObjBuilder &result,
bool fromRepl ) {
- Lock::DBLock dbXLock(txn->lockState(), db, newlm::MODE_X);
+ Lock::DBWrite dbXLock(txn->lockState(), db);
WriteUnitOfWork wunit(txn);
Client::Context ctx(txn, db);