diff options
author | Devin Hilly <devin.hilly@mongodb.com> | 2018-11-13 17:55:50 -0500 |
---|---|---|
committer | Devin Hilly <devin.hilly@mongodb.com> | 2018-11-20 11:24:41 -0500 |
commit | 1862b00862a6ea9c3fdd08bba52ea6a016eccbc5 (patch) | |
tree | e0004fc325c86b0e4465fc602dd0d453df83bbec /src/mongo/db/commands/killcursors_cmd.cpp | |
parent | b92c7480df5406cb9487228af36cb10bb973e77c (diff) | |
download | mongo-1862b00862a6ea9c3fdd08bba52ea6a016eccbc5.tar.gz |
SERVER-31098 Wrong ns in system.profile for aggregation query
Diffstat (limited to 'src/mongo/db/commands/killcursors_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/killcursors_cmd.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/commands/killcursors_cmd.cpp b/src/mongo/db/commands/killcursors_cmd.cpp index fb846d38b6a..dc381aae471 100644 --- a/src/mongo/db/commands/killcursors_cmd.cpp +++ b/src/mongo/db/commands/killcursors_cmd.cpp @@ -83,8 +83,11 @@ private: ? nss.getTargetNSForGloballyManagedNamespace() : nss) { const boost::optional<int> dbProfilingLevel = boost::none; - statsTracker.emplace( - opCtx, *nssForCurOp, Top::LockType::NotLocked, dbProfilingLevel); + statsTracker.emplace(opCtx, + *nssForCurOp, + Top::LockType::NotLocked, + AutoStatsTracker::LogMode::kUpdateTopAndCurop, + dbProfilingLevel); } } |