From b47300a80384e48dd6e17bae7a81479f7b9f1a2c Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Mon, 10 Apr 2017 17:00:10 -0400 Subject: SERVER-28624 Replace references to ReplicationExecutor with TaskExecutor. This change replaces, wherever possible, references to the concrete type ReplicationExecutor with references to the interface type TaskExecutor, and eliminates the repl::ResponseStatus typedef, with an eye toward eventually replacing ReplicationExecutor with another implementation. --- src/mongo/db/repl/base_cloner_test_fixture.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/repl/base_cloner_test_fixture.cpp') diff --git a/src/mongo/db/repl/base_cloner_test_fixture.cpp b/src/mongo/db/repl/base_cloner_test_fixture.cpp index ebaa135090f..89676a8a7f6 100644 --- a/src/mongo/db/repl/base_cloner_test_fixture.cpp +++ b/src/mongo/db/repl/base_cloner_test_fixture.cpp @@ -140,16 +140,15 @@ void BaseClonerTest::scheduleNetworkResponse(NetworkOperationIterator noi, const auto net = getNet(); Milliseconds millis(0); RemoteCommandResponse response(obj, BSONObj(), millis); - executor::TaskExecutor::ResponseStatus responseStatus(response); log() << "Scheduling response to request:" << noi->getDiagnosticString() << " -- resp:" << obj; - net->scheduleResponse(noi, net->now(), responseStatus); + net->scheduleResponse(noi, net->now(), response); } void BaseClonerTest::scheduleNetworkResponse(NetworkOperationIterator noi, ErrorCodes::Error code, const std::string& reason) { auto net = getNet(); - executor::TaskExecutor::ResponseStatus responseStatus(code, reason); + RemoteCommandResponse responseStatus(code, reason); log() << "Scheduling error response to request:" << noi->getDiagnosticString() << " -- status:" << responseStatus.status.toString(); net->scheduleResponse(noi, net->now(), responseStatus); -- cgit v1.2.1