diff options
author | Andy Schwerin <Andy Schwerin schwerin@mongodb.com> | 2017-04-10 17:00:10 -0400 |
---|---|---|
committer | Andy Schwerin <Andy Schwerin schwerin@mongodb.com> | 2017-04-18 13:33:30 -0400 |
commit | b47300a80384e48dd6e17bae7a81479f7b9f1a2c (patch) | |
tree | a572caf8997526ab72bc28756ab9a7821959d3a0 /src/mongo/db/repl/base_cloner_test_fixture.cpp | |
parent | 89931a9ab6942c8f55afa1a523ac8fb0801ba731 (diff) | |
download | mongo-b47300a80384e48dd6e17bae7a81479f7b9f1a2c.tar.gz |
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.
Diffstat (limited to 'src/mongo/db/repl/base_cloner_test_fixture.cpp')
-rw-r--r-- | src/mongo/db/repl/base_cloner_test_fixture.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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); |