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/curop_metrics.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/curop_metrics.cpp')
-rw-r--r-- | src/mongo/db/curop_metrics.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/curop_metrics.cpp b/src/mongo/db/curop_metrics.cpp index 1319c481ede..595ad75514c 100644 --- a/src/mongo/db/curop_metrics.cpp +++ b/src/mongo/db/curop_metrics.cpp @@ -72,14 +72,14 @@ void recordCurOpMetrics(OperationContext* opCtx) { updatedCounter.increment(debug.nMatched); if (debug.ndeleted > 0) deletedCounter.increment(debug.ndeleted); - if (debug.nscanned > 0) - scannedCounter.increment(debug.nscanned); - if (debug.nscannedObjects > 0) - scannedObjectCounter.increment(debug.nscannedObjects); + if (debug.keysExamined > 0) + scannedCounter.increment(debug.keysExamined); + if (debug.docsExamined > 0) + scannedObjectCounter.increment(debug.docsExamined); if (debug.idhack) idhackCounter.increment(); - if (debug.scanAndOrder) + if (debug.hasSortStage) scanAndOrderCounter.increment(); if (debug.fastmod) fastmodCounter.increment(); |