diff options
Diffstat (limited to 'src/mongo/client/fetcher.h')
| -rw-r--r-- | src/mongo/client/fetcher.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mongo/client/fetcher.h b/src/mongo/client/fetcher.h index 050ac50f249..3af4c6f329d 100644 --- a/src/mongo/client/fetcher.h +++ b/src/mongo/client/fetcher.h @@ -130,7 +130,8 @@ public: const BSONObj& cmdObj, const CallbackFn& work, const BSONObj& metadata = rpc::ServerSelectionMetadata(true, boost::none).toBSON(), - Milliseconds timeout = RemoteCommandRequest::kNoTimeout, + Milliseconds findNetworkTimeout = RemoteCommandRequest::kNoTimeout, + Milliseconds getMoreNetworkTimeout = RemoteCommandRequest::kNoTimeout, std::unique_ptr<RemoteCommandRetryScheduler::RetryPolicy> firstCommandRetryPolicy = RemoteCommandRetryScheduler::makeNoRetryPolicy()); @@ -152,11 +153,6 @@ public: BSONObj getMetadataObject() const; /** - * Returns timeout for remote commands to complete. - */ - Milliseconds getTimeout() const; - - /** * Returns diagnostic information. */ std::string getDiagnosticString() const; @@ -260,7 +256,8 @@ private: executor::TaskExecutor::CallbackHandle _getMoreCallbackHandle; // Socket timeout - Milliseconds _timeout; + Milliseconds _findNetworkTimeout; + Milliseconds _getMoreNetworkTimeout; // First remote command scheduler. RemoteCommandRetryScheduler _firstRemoteCommandScheduler; |
