diff options
author | James Wahlin <james@mongodb.com> | 2019-03-07 08:30:27 -0500 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2019-04-11 14:59:55 -0400 |
commit | 6b47868e5a82822a21176db3a7d3abd2df429e1f (patch) | |
tree | ca2adddd4590b62cdefbc641d97cc58b5cc05479 /src/mongo/db/pipeline/stage_constraints.h | |
parent | 95bb948f7e5e573ca1473ba43dd6fd8e53cb5f50 (diff) | |
download | mongo-6b47868e5a82822a21176db3a7d3abd2df429e1f.tar.gz |
SERVER-40381 Add the ability to specify a pipeline to an update command
Diffstat (limited to 'src/mongo/db/pipeline/stage_constraints.h')
-rw-r--r-- | src/mongo/db/pipeline/stage_constraints.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/stage_constraints.h b/src/mongo/db/pipeline/stage_constraints.h index 19961d7d45d..716258b7f68 100644 --- a/src/mongo/db/pipeline/stage_constraints.h +++ b/src/mongo/db/pipeline/stage_constraints.h @@ -289,5 +289,8 @@ struct StageConstraints { // order of documents can be swapped with a $sample because our implementation of sample will do // a random sort which shuffles the order. bool canSwapWithLimitAndSample = false; + + // Indicates that a stage is allowed within a pipeline-stlye update. + bool isAllowedWithinUpdatePipeline = false; }; } // namespace mongo |