diff options
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.h')
-rw-r--r-- | src/mongo/db/pipeline/pipeline.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/pipeline.h b/src/mongo/db/pipeline/pipeline.h index b32b5df76d5..8a7f4211490 100644 --- a/src/mongo/db/pipeline/pipeline.h +++ b/src/mongo/db/pipeline/pipeline.h @@ -253,10 +253,11 @@ private: void unstitch(); /** - * Returns a non-OK status if any stage is in an invalid position. For example, if an $out stage - * is present but is not the last stage in the pipeline. + * Returns a non-OK status if the pipeline fails any of a set of semantic checks. For example, + * if an $out stage is present then it must come last in the pipeline, while initial stages such + * as $indexStats must be at the start. */ - Status ensureAllStagesAreInLegalPositions() const; + Status validate() const; SourceContainer _sources; |