diff options
Diffstat (limited to 'src/mongo/s/query/async_results_merger.h')
| -rw-r--r-- | src/mongo/s/query/async_results_merger.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/s/query/async_results_merger.h b/src/mongo/s/query/async_results_merger.h index 3fde29e141e..518a129b0ec 100644 --- a/src/mongo/s/query/async_results_merger.h +++ b/src/mongo/s/query/async_results_merger.h @@ -109,6 +109,11 @@ public: ~AsyncResultsMerger(); /** + * Returns a const reference to the parameters. + */ + const AsyncResultsMergerParams& params() const; + + /** * Returns true if all of the remote cursors are exhausted. */ bool remotesExhausted() const; @@ -485,7 +490,7 @@ private: OperationContext* _opCtx; std::shared_ptr<executor::TaskExecutor> _executor; TailableModeEnum _tailableMode; - AsyncResultsMergerParams _params; + const AsyncResultsMergerParams _params; // Must be acquired before accessing any data members (other than _params, which is read-only). mutable Mutex _mutex = MONGO_MAKE_LATCH("AsyncResultsMerger::_mutex"); |
