diff options
author | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-09-14 12:17:07 -0400 |
---|---|---|
committer | Kyle Suarez <kyle.suarez@mongodb.com> | 2018-09-14 13:51:15 -0400 |
commit | 7e8486ba84837a548f2f1470209eb204a42c293a (patch) | |
tree | a867539db74beba9368012efb0229d44f05d6f7b /src/mongo/db/pipeline/document_source_change_stream_transform.cpp | |
parent | 8f9cf06033d7b1e0942c76eecfb69b5eee044ed6 (diff) | |
download | mongo-7e8486ba84837a548f2f1470209eb204a42c293a.tar.gz |
SERVER-35419 $lookup and $facet must inherit constraints from children
By default, $lookup and $facet do not write persistent data and are
allowed in a transaction. However, both stages must inherit the
"strictest" disk use requirement of any stage in their sub-pipelines,
and can only be used in a transaction if each of those pipelines contain
only transaction-compatible stages.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream_transform.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_change_stream_transform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream_transform.cpp b/src/mongo/db/pipeline/document_source_change_stream_transform.cpp index 9e49dedcd1f..cb86e61b65a 100644 --- a/src/mongo/db/pipeline/document_source_change_stream_transform.cpp +++ b/src/mongo/db/pipeline/document_source_change_stream_transform.cpp @@ -117,7 +117,7 @@ DocumentSourceChangeStreamTransform::DocumentSourceChangeStreamTransform( } } -DocumentSource::StageConstraints DocumentSourceChangeStreamTransform::constraints( +StageConstraints DocumentSourceChangeStreamTransform::constraints( Pipeline::SplitState pipeState) const { StageConstraints constraints(StreamType::kStreaming, PositionRequirement::kNone, |