summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
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/commands
parentd798c5fd75a5854fb8fefc590280aa701fa5e420 (diff)
downloadmongo-43f9a78849f884bd01608ee5129eb7ac6df16b4f.tar.gz
SERVER-62760 Implement CQF Query Logging
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r--src/mongo/db/commands/cqf/cqf_aggregate.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands/cqf/cqf_aggregate.cpp b/src/mongo/db/commands/cqf/cqf_aggregate.cpp
index d8aefc60818..ae154cad112 100644
--- a/src/mongo/db/commands/cqf/cqf_aggregate.cpp
+++ b/src/mongo/db/commands/cqf/cqf_aggregate.cpp
@@ -30,6 +30,7 @@
#include "mongo/db/commands/cqf/cqf_aggregate.h"
#include "mongo/db/commands/cqf/cqf_command_utils.h"
+#include "mongo/db/curop.h"
#include "mongo/db/exec/sbe/abt/abt_lower.h"
#include "mongo/db/pipeline/abt/document_source_visitor.h"
#include "mongo/db/pipeline/abt/match_expression_visitor.h"
@@ -406,6 +407,9 @@ std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> getSBEExecutorViaCascadesOp
"Timeseries collections are not supported",
!collection || !collection->getTimeseriesOptions());
+ auto curOp = CurOp::get(opCtx);
+ curOp->debug().cqfUsed = true;
+
QueryHints queryHints = getHintsFromQueryKnobs();
PrefixId prefixId;