summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/run_aggregate.cpp
diff options
context:
space:
mode:
authorsamontea <merciers.merciers@gmail.com>2019-06-07 16:11:25 -0400
committersamontea <merciers.merciers@gmail.com>2019-07-10 16:29:06 -0400
commita4ef14ef41f0700ef07e5b57b0345d2396a44604 (patch)
tree9fe5a652acecb2b98cb09240b3fc90e47eb66452 /src/mongo/db/commands/run_aggregate.cpp
parent6bba6446e632b557ccc03834d4d48e90336679fc (diff)
downloadmongo-a4ef14ef41f0700ef07e5b57b0345d2396a44604.tar.gz
SERVER-40755 Expose statistics which indicate how many collection scans have executed
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r--src/mongo/db/commands/run_aggregate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp
index 1a62a4b0b34..ab63dec4dbe 100644
--- a/src/mongo/db/commands/run_aggregate.cpp
+++ b/src/mongo/db/commands/run_aggregate.cpp
@@ -786,7 +786,7 @@ Status runAggregate(OperationContext* opCtx,
// For an optimized away pipeline, signal the cache that a query operation has completed.
// For normal pipelines this is done in DocumentSourceCursor.
if (ctx && ctx->getCollection()) {
- ctx->getCollection()->infoCache()->notifyOfQuery(opCtx, stats.indexesUsed);
+ ctx->getCollection()->infoCache()->notifyOfQuery(opCtx, stats);
}
}