diff options
author | Ben Shteinfeld <ben.shteinfeld@mongodb.com> | 2022-08-17 21:16:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-17 23:52:54 +0000 |
commit | 43f9a78849f884bd01608ee5129eb7ac6df16b4f (patch) | |
tree | 7f1df7c36f0d4f16d987e2d9498b5e0edba414ce /src/mongo/db/commands | |
parent | d798c5fd75a5854fb8fefc590280aa701fa5e420 (diff) | |
download | mongo-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.cpp | 4 |
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; |