summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_mock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_mock.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_mock.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_mock.cpp b/src/mongo/db/repl/replication_coordinator_mock.cpp
index 9d8e94643fc..e30c8f0b417 100644
--- a/src/mongo/db/repl/replication_coordinator_mock.cpp
+++ b/src/mongo/db/repl/replication_coordinator_mock.cpp
@@ -577,7 +577,7 @@ void ReplicationCoordinatorMock::incrementTopologyVersion() {
SharedSemiFuture<std::shared_ptr<const IsMasterResponse>>
ReplicationCoordinatorMock::getIsMasterResponseFuture(
const SplitHorizon::Parameters& horizonParams,
- boost::optional<TopologyVersion> clientTopologyVersion) const {
+ boost::optional<TopologyVersion> clientTopologyVersion) {
auto response =
awaitIsMasterResponse(nullptr, horizonParams, clientTopologyVersion, Date_t::now());
return SharedSemiFuture<std::shared_ptr<const IsMasterResponse>>(
@@ -588,7 +588,7 @@ std::shared_ptr<const IsMasterResponse> ReplicationCoordinatorMock::awaitIsMaste
OperationContext* opCtx,
const SplitHorizon::Parameters& horizonParams,
boost::optional<TopologyVersion> clientTopologyVersion,
- boost::optional<Date_t> deadline) const {
+ boost::optional<Date_t> deadline) {
auto response = std::make_shared<IsMasterResponse>();
response->setReplSetVersion(_getConfigReturnValue.getConfigVersion());
response->setIsMaster(true);