diff options
Diffstat (limited to 'src/mongo/db/pipeline/plan_executor_pipeline.h')
-rw-r--r-- | src/mongo/db/pipeline/plan_executor_pipeline.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/plan_executor_pipeline.h b/src/mongo/db/pipeline/plan_executor_pipeline.h index 7fbb0d677b4..ed77e3cc8c1 100644 --- a/src/mongo/db/pipeline/plan_executor_pipeline.h +++ b/src/mongo/db/pipeline/plan_executor_pipeline.h @@ -157,6 +157,12 @@ private: boost::optional<Document> _getNext(); /** + * Obtains the next result from the pipeline, gracefully handling any known exceptions which may + * be thrown. + */ + boost::optional<Document> _tryGetNext(); + + /** * For a change stream or resumable oplog scan, updates the scan state based on the latest * document returned by the underlying pipeline. */ |