From 4ddf18bcf4d517c3dc0f005f9222ffaab9a86ffa Mon Sep 17 00:00:00 2001 From: Jason Carey Date: Wed, 21 Mar 2018 00:15:35 -0400 Subject: SERVER-34739 Migrate to 1 connpool in ARS Migrate to 1 connection pool in mongos. This change involves the introduction of a transport layer baton, which improves perf for a particular transport layer when doing local scatter/gather operations. --- src/mongo/db/repl/task_executor_mock.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/repl/task_executor_mock.cpp') diff --git a/src/mongo/db/repl/task_executor_mock.cpp b/src/mongo/db/repl/task_executor_mock.cpp index 320fb12c77f..a25126baecb 100644 --- a/src/mongo/db/repl/task_executor_mock.cpp +++ b/src/mongo/db/repl/task_executor_mock.cpp @@ -58,11 +58,13 @@ StatusWith TaskExecutorMock::scheduleWor } StatusWith TaskExecutorMock::scheduleRemoteCommand( - const executor::RemoteCommandRequest& request, const RemoteCommandCallbackFn& cb) { + const executor::RemoteCommandRequest& request, + const RemoteCommandCallbackFn& cb, + const transport::BatonHandle& baton) { if (shouldFailScheduleRemoteCommandRequest(request)) { return Status(ErrorCodes::OperationFailed, "failed to schedule remote command"); } - return getExecutor()->scheduleRemoteCommand(request, cb); + return getExecutor()->scheduleRemoteCommand(request, cb, baton); } } // namespace repl -- cgit v1.2.1