0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

SERVER-17196 rename slaves field in serverStatus to replicationProgress

This commit is contained in:
matt dannenberg 2015-02-13 12:30:30 -05:00
parent e93d4be469
commit bae4fcce20

View File

@ -1433,11 +1433,11 @@ namespace {
void ReplicationCoordinatorImpl::appendSlaveInfoData(BSONObjBuilder* result) {
boost::lock_guard<boost::mutex> lock(_mutex);
BSONArrayBuilder slaves(result->subarrayStart("slaves"));
BSONArrayBuilder replicationProgress(result->subarrayStart("replicationProgress"));
{
for (SlaveInfoVector::const_iterator itr = _slaveInfo.begin();
itr != _slaveInfo.end(); ++itr) {
BSONObjBuilder entry(slaves.subobjStart());
BSONObjBuilder entry(replicationProgress.subobjStart());
entry.append("rid", itr->rid);
entry.append("optime", itr->opTime);
entry.append("host", itr->hostAndPort.toString());