summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristina <kristina@10gen.com>2011-12-05 17:35:10 -0500
committerEliot Horowitz <eliot@10gen.com>2011-12-05 23:49:17 -0500
commitb9e4db5cdc85a2770dd0ffd2527764f3c37a6d5c (patch)
treec9c94dd898e1cd3d6980e90301444c7b70111a20
parent85488010f7f553aceea9924da023796fdb308a1e (diff)
downloadmongo-b9e4db5cdc85a2770dd0ffd2527764f3c37a6d5c.tar.gz
Count new RS members as up before they are initialized
-rw-r--r--db/repl/heartbeat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/repl/heartbeat.cpp b/db/repl/heartbeat.cpp
index a1780c38740..138ba4594ba 100644
--- a/db/repl/heartbeat.cpp
+++ b/db/repl/heartbeat.cpp
@@ -102,8 +102,8 @@ namespace mongo {
if( !from.empty() ) {
replSettings.discoveredSeeds.insert(from);
}
- errmsg = "still initializing";
- return false;
+ result.append("hbmsg", "still initializing");
+ return true;
}
if( theReplSet->name() != cmdObj.getStringField("replSetHeartbeat") ) {