summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <Andy Schwerin schwerin@mongodb.com>2017-04-10 17:00:10 -0400
committerAndy Schwerin <Andy Schwerin schwerin@mongodb.com>2017-04-18 13:33:30 -0400
commitb47300a80384e48dd6e17bae7a81479f7b9f1a2c (patch)
treea572caf8997526ab72bc28756ab9a7821959d3a0 /src/mongo/db/repl/replication_coordinator_test_fixture.cpp
parent89931a9ab6942c8f55afa1a523ac8fb0801ba731 (diff)
downloadmongo-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/replication_coordinator_test_fixture.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_test_fixture.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_test_fixture.cpp b/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
index 0df971091d4..e5a17dd5c1a 100644
--- a/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
+++ b/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
@@ -195,16 +195,17 @@ void ReplCoordTest::assertStartSuccess(const BSONObj& configDoc, const HostAndPo
ASSERT_NE(MemberState::RS_STARTUP, getReplCoord()->getMemberState().s);
}
-ResponseStatus ReplCoordTest::makeResponseStatus(const BSONObj& doc, Milliseconds millis) {
+executor::RemoteCommandResponse ReplCoordTest::makeResponseStatus(const BSONObj& doc,
+ Milliseconds millis) {
return makeResponseStatus(doc, BSONObj(), millis);
}
-ResponseStatus ReplCoordTest::makeResponseStatus(const BSONObj& doc,
- const BSONObj& metadata,
- Milliseconds millis) {
+executor::RemoteCommandResponse ReplCoordTest::makeResponseStatus(const BSONObj& doc,
+ const BSONObj& metadata,
+ Milliseconds millis) {
log() << "Responding with " << doc << " (metadata: " << metadata << "; elapsed: " << millis
<< ")";
- return ResponseStatus(RemoteCommandResponse(doc, metadata, millis));
+ return RemoteCommandResponse(doc, metadata, millis);
}
void ReplCoordTest::simulateEnoughHeartbeatsForAllNodesUp() {