add syncingTo field to rs status

This commit is contained in:
Kristina
2011-04-06 12:41:48 -04:00
parent 746af4a274
commit cd89ae05d7
4 changed files with 7 additions and 0 deletions

View File

@@ -97,10 +97,12 @@ namespace mongo {
if (!closest) {
sethbmsg("couldn't find a member to sync from");
_currentSyncTarget = NULL;
return NULL;
}
sethbmsg( str::stream() << "syncing to: " << closest->fullName(), 0);
_currentSyncTarget = closest;
return const_cast<Member*>(closest);
}