summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/plan_explainer_sbe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/plan_explainer_sbe.cpp')
-rw-r--r--src/mongo/db/query/plan_explainer_sbe.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/query/plan_explainer_sbe.cpp b/src/mongo/db/query/plan_explainer_sbe.cpp
index f37382a23b6..d1fbe796d2b 100644
--- a/src/mongo/db/query/plan_explainer_sbe.cpp
+++ b/src/mongo/db/query/plan_explainer_sbe.cpp
@@ -193,7 +193,9 @@ void statsToBSON(const QuerySolutionNode* node,
if (!cisn->filtersByPath.empty()) {
BSONObjBuilder filtersBob(bob->subobjStart("filtersByPath"));
for (const auto& [path, matchExpr] : cisn->filtersByPath) {
- filtersBob.append(path, matchExpr->serialize(false /* includePath */));
+ SerializationOptions opts;
+ opts.includePath = false;
+ filtersBob.append(path, matchExpr->serialize(opts));
}
}