summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/find_and_modify.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/find_and_modify.cpp')
-rw-r--r--src/mongo/db/commands/find_and_modify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/find_and_modify.cpp b/src/mongo/db/commands/find_and_modify.cpp
index fed55c1c10b..79ee34203ce 100644
--- a/src/mongo/db/commands/find_and_modify.cpp
+++ b/src/mongo/db/commands/find_and_modify.cpp
@@ -427,7 +427,7 @@ public:
std::move(statusWithPlanExecutor.getValue());
{
- stdx::lock_guard<Client>(*txn->getClient());
+ stdx::lock_guard<Client> lk(*txn->getClient());
CurOp::get(txn)->setPlanSummary_inlock(Explain::getPlanSummary(exec.get()));
}
@@ -533,7 +533,7 @@ public:
std::move(statusWithPlanExecutor.getValue());
{
- stdx::lock_guard<Client>(*txn->getClient());
+ stdx::lock_guard<Client> lk(*txn->getClient());
CurOp::get(txn)->setPlanSummary_inlock(Explain::getPlanSummary(exec.get()));
}