summaryrefslogtreecommitdiff
path: root/db/repl.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-02-02 16:18:44 -0500
committerAaron <aaron@10gen.com>2009-02-02 16:18:44 -0500
commit99ad2eac7686e4ac5dc91fdf3e190694086ccf51 (patch)
tree4ca6375768710a32a1bcc211669d5b455fa31576 /db/repl.cpp
parentce75d6fd879c2b1711d9cea00f67176ac4f34f36 (diff)
downloadmongo-99ad2eac7686e4ac5dc91fdf3e190694086ccf51.tar.gz
Parse port suffix before calling hostbyname()
Diffstat (limited to 'db/repl.cpp')
-rw-r--r--db/repl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/repl.cpp b/db/repl.cpp
index 07407571e22..11a9d45f724 100644
--- a/db/repl.cpp
+++ b/db/repl.cpp
@@ -975,6 +975,7 @@ namespace mongo {
log() << "pull: " << sourceName() << '@' << hostName << endl;
nClonedThisPass = 0;
+ // FIXME Handle cases where this db isn't on default port, or default port is spec'd in hostName.
if ( (string("localhost") == hostName || string("127.0.0.1") == hostName) && port == DBPort ) {
log() << "pull: can't sync from self (localhost). sources configuration may be wrong." << endl;
sleepsecs(5);