summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-01-08 23:18:45 +0000
committerevergreen <evergreen@mongodb.com>2020-01-08 23:18:45 +0000
commite2afa9a595a04e4828097c290c2c97beb5a22620 (patch)
treefacfbff0e0c355ab199ff7748775c030334fb247
parent4c9f3c7b743fc02ee45151eca3e2707d3db32762 (diff)
downloadmongo-e2afa9a595a04e4828097c290c2c97beb5a22620.tar.gz
SERVER-43910 BasicCommand::Invocation sets LockManager DebugInfo
(cherry picked from commit 34719559a9ec4bd494a59d269d227d06b086affb)
-rw-r--r--src/mongo/db/commands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp
index 63e51b1197b..89ae334d63b 100644
--- a/src/mongo/db/commands.cpp
+++ b/src/mongo/db/commands.cpp
@@ -590,6 +590,7 @@ public:
private:
void run(OperationContext* opCtx, rpc::ReplyBuilderInterface* result) override {
+ opCtx->lockState()->setDebugInfo(redact(_request->body));
BSONObjBuilder bob = result->getBodyBuilder();
bool ok = _command->run(opCtx, _dbName, _request->body, bob);
if (!ok)