summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/cpuprofile.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-08-11 14:12:42 -0400
committerMathias Stearn <mathias@10gen.com>2014-08-13 17:30:25 -0400
commite33a6c57607871f1b204bd5e1d8ea4a14ad06452 (patch)
treed82f31fde82fbb43cb4e2c5ff3aa12044c8af199 /src/mongo/db/commands/cpuprofile.cpp
parent00913e47de5aced5267e44e82ac9e976bbaac089 (diff)
downloadmongo-e33a6c57607871f1b204bd5e1d8ea4a14ad06452.tar.gz
SERVER-13951 WUOW now takes whole OperationContext, not just RecoveryUnit
This will make it possible to implement two-phase locking.
Diffstat (limited to 'src/mongo/db/commands/cpuprofile.cpp')
-rw-r--r--src/mongo/db/commands/cpuprofile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/cpuprofile.cpp b/src/mongo/db/commands/cpuprofile.cpp
index 3c96323fad9..748d8e08a76 100644
--- a/src/mongo/db/commands/cpuprofile.cpp
+++ b/src/mongo/db/commands/cpuprofile.cpp
@@ -155,7 +155,7 @@ namespace mongo {
BSONObjBuilder &result,
bool fromRepl ) {
Lock::DBWrite dbXLock(txn->lockState(), db);
- WriteUnitOfWork wunit(txn->recoveryUnit());
+ WriteUnitOfWork wunit(txn);
Client::Context ctx(txn, db);
::ProfilerStop();