summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplogreader.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2014-08-29 16:34:24 -0400
committerEric Milkie <milkie@10gen.com>2014-08-29 17:17:00 -0400
commit0fbd416c565ec4af11990e64cab887af12fbf76f (patch)
tree2787feb1a82b00469c60de37a28767f806d06742 /src/mongo/db/repl/oplogreader.h
parent746e8835b0b841235b767628d6ae0382a85bdab0 (diff)
downloadmongo-0fbd416c565ec4af11990e64cab887af12fbf76f.tar.gz
SERVER-15089 oplogreader use HostAndPort to connect instead of strings
Diffstat (limited to 'src/mongo/db/repl/oplogreader.h')
-rw-r--r--src/mongo/db/repl/oplogreader.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/oplogreader.h b/src/mongo/db/repl/oplogreader.h
index 0660e081806..0ce08a19d62 100644
--- a/src/mongo/db/repl/oplogreader.h
+++ b/src/mongo/db/repl/oplogreader.h
@@ -74,11 +74,11 @@ namespace repl {
static const int tcp_timeout = 30;
/* ok to call if already connected */
- bool connect(const std::string& hostname);
+ bool connect(const HostAndPort& host);
- bool connect(const std::string& hostname, const OID& myRID);
+ bool connect(const HostAndPort& host, const OID& myRID);
- bool connect(const mongo::OID& rid, const int from, const std::string& to);
+ bool connect(const mongo::OID& rid, const int from, const HostAndPort& to);
void tailCheck();
@@ -156,7 +156,7 @@ namespace repl {
private:
/** @return true iff connection was successful */
- bool commonConnect(const std::string& hostName);
+ bool commonConnect(const HostAndPort& host);
bool passthroughHandshake(const mongo::OID& rid, const int f);
};