diff options
author | David Storch <david.storch@10gen.com> | 2015-09-02 15:38:43 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-09-03 16:06:13 -0400 |
commit | 1574457c5ff972f39ddd079164be894ae6fc9f59 (patch) | |
tree | 64ee2784035ca39fe5aaa61aed36327326aeda0d /src/mongo/db/query/find.cpp | |
parent | 2330fcb66e777d9204351d81fff06798025277d5 (diff) | |
download | mongo-1574457c5ff972f39ddd079164be894ae6fc9f59.tar.gz |
SERVER-19566 convert OP_QUERY profiler entries to look like the find command
Includes the following changes to profiler entries for queries:
-- The query field will contain find command parameters, e.g.
{find: <coll>, filter: {...}}.
-- Renames 'nscanned' to 'keysExamined' and 'nscannedObjects' to 'docsExamined'.
-- Renames 'scanAndOrder' to 'hasSortStage'.
-- Removes the top-level ntoreturn and ntoskip fields. Skip, limit, and
batchSize info will be present in the 'query' field instead.
Diffstat (limited to 'src/mongo/db/query/find.cpp')
-rw-r--r-- | src/mongo/db/query/find.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/find.cpp b/src/mongo/db/query/find.cpp index edeed99974c..3b82aa29ce1 100644 --- a/src/mongo/db/query/find.cpp +++ b/src/mongo/db/query/find.cpp @@ -151,9 +151,9 @@ void endQueryOp(OperationContext* txn, // Fill out curop based on explain summary statistics. PlanSummaryStats summaryStats; Explain::getSummaryStats(exec, &summaryStats); - curop->debug().scanAndOrder = summaryStats.hasSortStage; - curop->debug().nscanned = summaryStats.totalKeysExamined; - curop->debug().nscannedObjects = summaryStats.totalDocsExamined; + curop->debug().hasSortStage = summaryStats.hasSortStage; + curop->debug().keysExamined = summaryStats.totalKeysExamined; + curop->debug().docsExamined = summaryStats.totalDocsExamined; curop->debug().idhack = summaryStats.isIdhack; const logger::LogComponent queryLogComponent = logger::LogComponent::kQuery; |