summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 0c734c3017d..63c2ac88dcb 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -675,6 +675,21 @@ void CurOp::reportState(OperationContext* opCtx, BSONObjBuilder* builder, bool t
appendAsObjOrString(
"command", appendCommentField(opCtx, _opDescription), maxQuerySize, builder);
+ switch (_debug.queryFramework) {
+ case PlanExecutor::QueryFramework::kClassicOnly:
+ case PlanExecutor::QueryFramework::kClassicHybrid:
+ builder->append("queryFramework", "classic");
+ break;
+ case PlanExecutor::QueryFramework::kSBEOnly:
+ case PlanExecutor::QueryFramework::kSBEHybrid:
+ builder->append("queryFramework", "sbe");
+ break;
+ case PlanExecutor::QueryFramework::kCQF:
+ builder->append("queryFramework", "cqf");
+ break;
+ case PlanExecutor::QueryFramework::kUnknown:
+ break;
+ }
if (!_planSummary.empty()) {
builder->append("planSummary", _planSummary);