diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-04-26 16:00:52 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2016-05-02 16:18:54 -0400 |
commit | 7bf7e4ee94def9b1a61d4cd6f1f8a50e315a0324 (patch) | |
tree | 07cc8824c697f3a578b089442a6a71add6888b44 /src/mongo/executor/network_interface_mock.h | |
parent | 2a7f7fa63e555f4bc0e42e831fbb0b3ab3dac568 (diff) | |
download | mongo-7bf7e4ee94def9b1a61d4cd6f1f8a50e315a0324.tar.gz |
SERVER-23660 Implement scatter gather runner to scan all nodes for highest oplog entry
Diffstat (limited to 'src/mongo/executor/network_interface_mock.h')
-rw-r--r-- | src/mongo/executor/network_interface_mock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/executor/network_interface_mock.h b/src/mongo/executor/network_interface_mock.h index 787d6415817..3d69bad78a5 100644 --- a/src/mongo/executor/network_interface_mock.h +++ b/src/mongo/executor/network_interface_mock.h @@ -202,6 +202,12 @@ public: */ void setHandshakeReplyForHost(const HostAndPort& host, RemoteCommandResponse&& reply); + /** + * Cancel a command with specified response, e.g. NetworkTimeout or CallbackCanceled errors. + */ + void _cancelCommand_inlock(const TaskExecutor::CallbackHandle& cbHandle, + const TaskExecutor::ResponseStatus& response); + private: /** * Information describing a scheduled alarm. |