summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2016-01-28 11:38:06 -0500
committerDavid Storch <david.storch@10gen.com>2016-02-02 12:08:23 -0500
commitbe9dbd36a1dc86249601252b37d00b046f4a6629 (patch)
treec57a01acc08cd9dad39fe9f0b74b5f44e3e16ed9 /src/mongo/db/query/find.cpp
parentecfac2be1f855c19ef6b50eef712fd3b6b9631f7 (diff)
downloadmongo-be9dbd36a1dc86249601252b37d00b046f4a6629.tar.gz
SERVER-18468 add 'fromMultiPlanner' and 'replanned' flags to slow command logs
Diffstat (limited to 'src/mongo/db/query/find.cpp')
-rw-r--r--src/mongo/db/query/find.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/query/find.cpp b/src/mongo/db/query/find.cpp
index b6450108372..cd4677343df 100644
--- a/src/mongo/db/query/find.cpp
+++ b/src/mongo/db/query/find.cpp
@@ -157,6 +157,8 @@ void endQueryOp(OperationContext* txn,
curop->debug().keysExamined = summaryStats.totalKeysExamined;
curop->debug().docsExamined = summaryStats.totalDocsExamined;
curop->debug().idhack = summaryStats.isIdhack;
+ curop->debug().fromMultiPlanner = summaryStats.fromMultiPlanner;
+ curop->debug().replanned = summaryStats.replanned;
if (collection) {
collection->infoCache()->notifyOfQuery(txn, summaryStats.indexesUsed);