summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2017-02-06 09:52:30 -0500
committerGeert Bosch <geert@mongodb.com>2017-02-06 14:50:12 -0500
commitddc34321a7b0019612ee2c093e84cb01b489dd79 (patch)
tree3a630682ba137081da8cde9796306adf70de2c9d /src/mongo/db/commands/pipeline_command.cpp
parentf73b0f30be37d0093131f828aa049cf933bb4873 (diff)
downloadmongo-ddc34321a7b0019612ee2c093e84cb01b489dd79.tar.gz
SERVER-27920 Fix incorrect locking of Client context
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index c34ee28a72c..0f07e38c830 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -429,7 +429,7 @@ public:
{
// Set the namespace of the curop back to the view namespace so ctx records
// stats on this view namespace on destruction.
- stdx::lock_guard<Client>(*txn->getClient());
+ stdx::lock_guard<Client> lk(*txn->getClient());
curOp->setNS_inlock(nss.ns());
}
return status;
@@ -500,7 +500,7 @@ public:
{
auto planSummary = Explain::getPlanSummary(exec.get());
- stdx::lock_guard<Client>(*txn->getClient());
+ stdx::lock_guard<Client> lk(*txn->getClient());
curOp->setPlanSummary_inlock(std::move(planSummary));
}