summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/classic_plan_cache.cpp
diff options
context:
space:
mode:
authorRuoxin Xu <ruoxin.xu@mongodb.com>2022-07-26 10:19:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-26 11:32:37 +0000
commite7d2be0dae29265e2a6efafd4753debf11b9e96f (patch)
tree394a15ee762d5eee6abad5d492e35330789c6dcf /src/mongo/db/query/classic_plan_cache.cpp
parente922e94ad274ef6d712d3a454a6d8427a736f2f6 (diff)
downloadmongo-e7d2be0dae29265e2a6efafd4753debf11b9e96f.tar.gz
SERVER-67101 Support microsecond precision in ScopedTimer
Diffstat (limited to 'src/mongo/db/query/classic_plan_cache.cpp')
-rw-r--r--src/mongo/db/query/classic_plan_cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/classic_plan_cache.cpp b/src/mongo/db/query/classic_plan_cache.cpp
index 79975991e4e..f4bbff1af2b 100644
--- a/src/mongo/db/query/classic_plan_cache.cpp
+++ b/src/mongo/db/query/classic_plan_cache.cpp
@@ -152,8 +152,8 @@ bool shouldCacheQuery(const CanonicalQuery& query) {
//
// There is one exception: $lookup's implementation in the DocumentSource engine relies on
// caching the plan on the inner side in order to avoid repeating the planning process for every
- // document on the outer side. To ensure that the 'executionTimeMillis' value is accurate for
- // $lookup, we allow the inner side to use the cache even if the query is an explain.
+ // document on the outer side. To ensure that the 'executionTime' value is accurate for $lookup,
+ // we allow the inner side to use the cache even if the query is an explain.
tassert(6497600, "expCtx is null", query.getExpCtxRaw());
if (query.getExplain() && !query.getExpCtxRaw()->inLookup) {
return false;