summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorBen Shteinfeld <ben.shteinfeld@mongodb.com>2022-08-17 21:16:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-17 23:52:54 +0000
commit43f9a78849f884bd01608ee5129eb7ac6df16b4f (patch)
tree7f1df7c36f0d4f16d987e2d9498b5e0edba414ce /src/mongo/db/curop.h
parentd798c5fd75a5854fb8fefc590280aa701fa5e420 (diff)
downloadmongo-43f9a78849f884bd01608ee5129eb7ac6df16b4f.tar.gz
SERVER-62760 Implement CQF Query Logging
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 15dcb2e0154..998f2400c73 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -263,13 +263,17 @@ public:
boost::optional<uint32_t> queryHash;
// Has a value if this operation is a query. True if the execution tree for the find part of the
- // query was built using the classic query engine, false if it was built in SBE.
+ // query was built exclusively using the classic query engine, false if any part was built using
+ // SBE.
boost::optional<bool> classicEngineUsed;
// Has a value if this operation is an aggregation query. True if `DocumentSources` were
// involved in the execution tree for this query, false if they were not.
boost::optional<bool> documentSourceUsed;
+ // Indicates whether this operation used the common query framework (CQF).
+ bool cqfUsed{false};
+
// Tracks whether an aggregation query has a lookup stage regardless of the engine used.
bool pipelineUsesLookup{false};