summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/expression.cpp
diff options
context:
space:
mode:
authorWill Buerger <will.buerger@mongodb.com>2023-03-14 20:49:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-16 19:20:45 +0000
commita9a20593fd1c3106548650bfc909d26dab2e38a4 (patch)
tree9121911fdcfc6ebd2fec8d31df02f554d970c3bc /src/mongo/db/pipeline/expression.cpp
parent9662f3c9edfd52ce4c9b0cad619bed57562a3daa (diff)
downloadmongo-a9a20593fd1c3106548650bfc909d26dab2e38a4.tar.gz
SERVER-74843 Remove overloaded document source serializers and change signature to use SerializationOptions
Diffstat (limited to 'src/mongo/db/pipeline/expression.cpp')
-rw-r--r--src/mongo/db/pipeline/expression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/expression.cpp b/src/mongo/db/pipeline/expression.cpp
index 008a93c5ac5..6cdc08bca0c 100644
--- a/src/mongo/db/pipeline/expression.cpp
+++ b/src/mongo/db/pipeline/expression.cpp
@@ -976,7 +976,7 @@ Value ExpressionCoerceToBool::evaluate(const Document& root, Variables* variable
Value ExpressionCoerceToBool::serialize(SerializationOptions options) const {
// When not explaining, serialize to an $and expression. When parsed, the $and expression
// will be optimized back into a ExpressionCoerceToBool.
- const char* name = options.explain ? "$coerceToBool" : "$and";
+ const char* name = options.verbosity ? "$coerceToBool" : "$and";
return Value(DOC(name << DOC_ARRAY(_children[_kExpression]->serialize(options))));
}