summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/find.cpp
diff options
context:
space:
mode:
authorWill Buerger <will.buerger@mongodb.com>2023-05-16 20:32:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 00:09:49 +0000
commitd646e44b7801a3e5b3230bbae7dcfe05a5ed8707 (patch)
tree2eebf945a3f958e3adddc157523a49deb72cc63d /src/mongo/db/query/find.cpp
parent8219766da20351edcda5fe21a18da254b382cd35 (diff)
downloadmongo-d646e44b7801a3e5b3230bbae7dcfe05a5ed8707.tar.gz
SERVER-76427: Rename $telemetry to $queryStats
Co-authored-by: Ted Tuckman <ted.tuckman@mongodb.com>
Diffstat (limited to 'src/mongo/db/query/find.cpp')
-rw-r--r--src/mongo/db/query/find.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/find.cpp b/src/mongo/db/query/find.cpp
index c54138afd4b..dcd402e9c70 100644
--- a/src/mongo/db/query/find.cpp
+++ b/src/mongo/db/query/find.cpp
@@ -112,7 +112,7 @@ void endQueryOp(OperationContext* opCtx,
auto curOp = CurOp::get(opCtx);
// Fill out basic CurOp query exec properties. More metrics (nreturned and executionTime)
- // are collected within collectTelemetryMongod.
+ // are collected within collectQueryStatsMongod.
curOp->debug().cursorid = (cursor.has_value() ? cursor->getCursor()->cursorid() : -1);
curOp->debug().cursorExhausted = !cursor.has_value();
curOp->debug().additiveMetrics.nBatches = 1;
@@ -125,9 +125,9 @@ void endQueryOp(OperationContext* opCtx,
curOp->setEndOfOpMetrics(numResults);
if (cursor) {
- collectTelemetryMongod(opCtx, *cursor);
+ collectQueryStatsMongod(opCtx, *cursor);
} else {
- collectTelemetryMongod(opCtx, std::move(curOp->debug().telemetryRequestShapifier));
+ collectQueryStatsMongod(opCtx, std::move(curOp->debug().queryStatsRequestShapifier));
}
if (collection) {