diff options
author | samontea <merciers.merciers@gmail.com> | 2019-06-07 16:11:25 -0400 |
---|---|---|
committer | samontea <merciers.merciers@gmail.com> | 2019-07-10 16:29:06 -0400 |
commit | a4ef14ef41f0700ef07e5b57b0345d2396a44604 (patch) | |
tree | 9fe5a652acecb2b98cb09240b3fc90e47eb66452 /src/mongo/db/commands/distinct.cpp | |
parent | 6bba6446e632b557ccc03834d4d48e90336679fc (diff) | |
download | mongo-a4ef14ef41f0700ef07e5b57b0345d2396a44604.tar.gz |
SERVER-40755 Expose statistics which indicate how many collection scans have executed
Diffstat (limited to 'src/mongo/db/commands/distinct.cpp')
-rw-r--r-- | src/mongo/db/commands/distinct.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/distinct.cpp b/src/mongo/db/commands/distinct.cpp index eee399d134d..ac156b32c30 100644 --- a/src/mongo/db/commands/distinct.cpp +++ b/src/mongo/db/commands/distinct.cpp @@ -285,7 +285,7 @@ public: PlanSummaryStats stats; Explain::getSummaryStats(*executor.getValue(), &stats); if (collection) { - collection->infoCache()->notifyOfQuery(opCtx, stats.indexesUsed); + collection->infoCache()->notifyOfQuery(opCtx, stats); } curOp->debug().setPlanSummaryMetrics(stats); |