summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_test_fixture.h
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.h
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.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator_test_fixture.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_test_fixture.h b/src/mongo/db/repl/replication_coordinator_test_fixture.h
index 5ffab24a8ef..972e2f503ae 100644
--- a/src/mongo/db/repl/replication_coordinator_test_fixture.h
+++ b/src/mongo/db/repl/replication_coordinator_test_fixture.h
@@ -59,18 +59,17 @@ class TopologyCoordinatorImpl;
class ReplCoordTest : public mongo::unittest::Test {
public:
/**
- * Makes a ResponseStatus with the given "doc" response and optional elapsed time "millis".
+ * Makes a command response with the given "doc" response and optional elapsed time "millis".
*/
- static ResponseStatus makeResponseStatus(const BSONObj& doc,
- Milliseconds millis = Milliseconds(0));
+ static executor::RemoteCommandResponse makeResponseStatus(
+ const BSONObj& doc, Milliseconds millis = Milliseconds(0));
/**
- * Makes a ResponseStatus with the given "doc" response, metadata and optional elapsed time
+ * Makes a command response with the given "doc" response, metadata and optional elapsed time
* "millis".
*/
- static ResponseStatus makeResponseStatus(const BSONObj& doc,
- const BSONObj& metadata,
- Milliseconds millis = Milliseconds(0));
+ static executor::RemoteCommandResponse makeResponseStatus(
+ const BSONObj& doc, const BSONObj& metadata, Milliseconds millis = Milliseconds(0));
/**
* Constructs a ReplSetConfig from the given BSON, or raises a test failure exception.