summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoonsoo Kim <yoonsoo.kim@mongodb.com>2021-09-22 17:32:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-22 18:00:35 +0000
commit33b918c720a50ea880f68d65b908fc8771eb07df (patch)
treee717014528c8cb1027bdac086e0601a46dad59b9
parent22fa3b7067bc0d9d025dc9191fd42ca509fc879f (diff)
downloadmongo-33b918c720a50ea880f68d65b908fc8771eb07df.tar.gz
SERVER-60136 Extend DocumentSourceGroup sbeGroupCompatible flag to use sbeCompatible flag
-rw-r--r--src/mongo/db/pipeline/document_source_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_group.cpp b/src/mongo/db/pipeline/document_source_group.cpp
index 1ca22c9adf3..e8849f65d11 100644
--- a/src/mongo/db/pipeline/document_source_group.cpp
+++ b/src/mongo/db/pipeline/document_source_group.cpp
@@ -495,7 +495,7 @@ intrusive_ptr<DocumentSource> DocumentSourceGroup::createFromBson(
groupStage->_memoryTracker.set(pFieldName, 0);
}
}
- groupStage->_sbeCompatible = expCtx->sbeGroupCompatible;
+ groupStage->_sbeCompatible = expCtx->sbeGroupCompatible && expCtx->sbeCompatible;
uassert(
15955, "a group specification must include an _id", !groupStage->_idExpressions.empty());