summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_single_document_transformation.h
diff options
context:
space:
mode:
authorEddie Louie <eddie.louie@mongodb.com>2017-08-01 20:15:42 -0400
committerEddie Louie <eddie.louie@mongodb.com>2017-08-01 20:15:42 -0400
commitfd01541d77ca1455c603c411f395d6ce34fab6f1 (patch)
tree10a26d5aec28d9d912c2020a9e4c87064382cf09 /src/mongo/db/pipeline/document_source_single_document_transformation.h
parentbabab967892f81f3107903cb41672503de791998 (diff)
downloadmongo-fd01541d77ca1455c603c411f395d6ce34fab6f1.tar.gz
SERVER-29506 Require $changeNotification to be the first stage.
This reverts commit babab967892f81f3107903cb41672503de791998.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_single_document_transformation.h')
-rw-r--r--src/mongo/db/pipeline/document_source_single_document_transformation.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_single_document_transformation.h b/src/mongo/db/pipeline/document_source_single_document_transformation.h
index a3bea23795e..26d394d05e9 100644
--- a/src/mongo/db/pipeline/document_source_single_document_transformation.h
+++ b/src/mongo/db/pipeline/document_source_single_document_transformation.h
@@ -101,8 +101,10 @@ public:
DocumentSource::GetDepsReturn getDependencies(DepsTracker* deps) const final;
GetModPathsReturn getModifiedPaths() const final;
- bool canSwapWithMatch() const final {
- return true;
+ StageConstraints constraints() const final {
+ StageConstraints constraints;
+ constraints.canSwapWithMatch = true;
+ return constraints;
}
TransformerInterface::TransformerType getType() const {