diff options
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.h')
-rw-r--r-- | src/mongo/db/pipeline/pipeline.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/pipeline.h b/src/mongo/db/pipeline/pipeline.h index 0a23cbd88e6..61fab79c347 100644 --- a/src/mongo/db/pipeline/pipeline.h +++ b/src/mongo/db/pipeline/pipeline.h @@ -73,6 +73,11 @@ public: const std::string& dbname, const BSONObj& cmdObj); + /** + * Returns true if the provided aggregation command has a $out stage. + */ + static bool aggSupportsWriteConcern(const BSONObj& cmd); + const boost::intrusive_ptr<ExpressionContext>& getContext() const { return pCtx; } |