summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_unwind.h
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2017-07-12 11:43:48 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2017-08-01 17:16:14 -0400
commit2431e1356823d898ef8af16997d6f63b65b385a5 (patch)
tree6df997de8e8e0378d4a2d711fce1d28be772293b /src/mongo/db/pipeline/document_source_unwind.h
parent718cf09aa21b36e9436a675c8645770826078da7 (diff)
downloadmongo-2431e1356823d898ef8af16997d6f63b65b385a5.tar.gz
SERVER-29506 Require $changeNotification to be the first stage.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_unwind.h')
-rw-r--r--src/mongo/db/pipeline/document_source_unwind.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_unwind.h b/src/mongo/db/pipeline/document_source_unwind.h
index 53fbd33d083..fb7bd68ba39 100644
--- a/src/mongo/db/pipeline/document_source_unwind.h
+++ b/src/mongo/db/pipeline/document_source_unwind.h
@@ -46,8 +46,10 @@ public:
*/
GetModPathsReturn getModifiedPaths() const final;
- bool canSwapWithMatch() const final {
- return true;
+ StageConstraints constraints() const final {
+ StageConstraints constraints;
+ constraints.canSwapWithMatch = true;
+ return constraints;
}
GetDepsReturn getDependencies(DepsTracker* deps) const final;