diff options
author | Aaron <aaron@10gen.com> | 2009-02-02 16:18:44 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-02-02 16:18:44 -0500 |
commit | 99ad2eac7686e4ac5dc91fdf3e190694086ccf51 (patch) | |
tree | 4ca6375768710a32a1bcc211669d5b455fa31576 /db/repl.cpp | |
parent | ce75d6fd879c2b1711d9cea00f67176ac4f34f36 (diff) | |
download | mongo-99ad2eac7686e4ac5dc91fdf3e190694086ccf51.tar.gz |
Parse port suffix before calling hostbyname()
Diffstat (limited to 'db/repl.cpp')
-rw-r--r-- | db/repl.cpp | 1 |
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); |