From 0fbd416c565ec4af11990e64cab887af12fbf76f Mon Sep 17 00:00:00 2001 From: Eric Milkie Date: Fri, 29 Aug 2014 16:34:24 -0400 Subject: SERVER-15089 oplogreader use HostAndPort to connect instead of strings --- src/mongo/db/repl/bgsync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/repl/bgsync.cpp') diff --git a/src/mongo/db/repl/bgsync.cpp b/src/mongo/db/repl/bgsync.cpp index 86cad555c4f..2ed63b2b512 100644 --- a/src/mongo/db/repl/bgsync.cpp +++ b/src/mongo/db/repl/bgsync.cpp @@ -393,7 +393,7 @@ namespace repl { while ((target = theReplSet->getMemberToSyncTo()) != NULL) { string current = target->fullName(); - if (!r.connect(current)) { + if (!r.connect(target->h())) { LOG(2) << "replSet can't connect to " << current << " to read operations" << rsLog; r.resetConnection(); theReplSet->veto(current); -- cgit v1.2.1