diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-05-07 11:35:33 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-05-10 22:03:40 -0400 |
commit | e06508fe119710ca06ee06504e0a33163af0708f (patch) | |
tree | 0712d33d484bfeafeb779de7eaa7b2f8b22aaaea /src/mongo/db/repl/freshness_checker.cpp | |
parent | 69bfdbc80fd2e66a6eb8cd1fbd4503537c97d7fc (diff) | |
download | mongo-e06508fe119710ca06ee06504e0a33163af0708f.tar.gz |
SERVER-18353 Move the remote command executor to a separate library
Diffstat (limited to 'src/mongo/db/repl/freshness_checker.cpp')
-rw-r--r-- | src/mongo/db/repl/freshness_checker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/freshness_checker.cpp b/src/mongo/db/repl/freshness_checker.cpp index 2281d0b54ee..2c5ef4872b8 100644 --- a/src/mongo/db/repl/freshness_checker.cpp +++ b/src/mongo/db/repl/freshness_checker.cpp @@ -79,7 +79,7 @@ namespace repl { FreshnessChecker::Algorithm::~Algorithm() {} - std::vector<ReplicationExecutor::RemoteCommandRequest> + std::vector<RemoteCommandRequest> FreshnessChecker::Algorithm::getRequests() const { const MemberConfig& selfConfig = _rsConfig.getMemberAt(_selfIndex); @@ -94,12 +94,12 @@ namespace repl { freshCmdBuilder.append("id", selfConfig.getId()); const BSONObj replSetFreshCmd = freshCmdBuilder.obj(); - std::vector<ReplicationExecutor::RemoteCommandRequest> requests; + std::vector<RemoteCommandRequest> requests; for (std::vector<HostAndPort>::const_iterator it = _targets.begin(); it != _targets.end(); ++it) { invariant(*it != selfConfig.getHostAndPort()); - requests.push_back(ReplicationExecutor::RemoteCommandRequest( + requests.push_back(RemoteCommandRequest( *it, "admin", replSetFreshCmd, @@ -127,7 +127,7 @@ namespace repl { } void FreshnessChecker::Algorithm::processResponse( - const ReplicationExecutor::RemoteCommandRequest& request, + const RemoteCommandRequest& request, const ResponseStatus& response) { ++_responsesProcessed; bool votingMember = _isVotingMember(request.target); |