diff options
author | Milena Ivanova <milena.ivanova@mongodb.com> | 2021-10-25 11:07:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-25 12:17:24 +0000 |
commit | a7d667da957305b1532fa07059f2bec6b2be97b4 (patch) | |
tree | 59237eebd9f189d5e17d6bfdcdfa0d4489b33181 /src/mongo/db/catalog | |
parent | 11e1a414386c0d4c670dfc306b8fdfd52a9e68e0 (diff) | |
download | mongo-a7d667da957305b1532fa07059f2bec6b2be97b4.tar.gz |
SERVER-57037 Improve precision of operator counters
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r-- | src/mongo/db/catalog/collection_impl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp index a15a507b98c..a70e9b6ec84 100644 --- a/src/mongo/db/catalog/collection_impl.cpp +++ b/src/mongo/db/catalog/collection_impl.cpp @@ -647,8 +647,10 @@ Collection::Validator CollectionImpl::parseValidator( ValidationLevelEnum::moderate) allowedFeatures &= ~MatchExpressionParser::AllowedFeatures::kEncryptKeywords; + expCtx->startExpressionCounters(); auto statusWithMatcher = MatchExpressionParser::parse(validator, expCtx, ExtensionsCallbackNoop(), allowedFeatures); + expCtx->stopExpressionCounters(); if (!statusWithMatcher.isOK()) { return { |