diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-08-14 08:23:43 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-08-14 15:27:45 -0400 |
commit | 1517ce9cd06ca1fe1f19c544f799e60f74732608 (patch) | |
tree | 922659572d5b888caeb43e2212fc5e1bc1a97736 /src/mongo | |
parent | 790ac725ecc5f207fc86d4401748529dcaaf93da (diff) | |
download | mongo-1517ce9cd06ca1fe1f19c544f799e60f74732608.tar.gz |
SERVER-30570 Change the name of a loop variable masking a parameter name
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/s/commands/cluster_aggregate.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/s/commands/cluster_aggregate.cpp b/src/mongo/s/commands/cluster_aggregate.cpp index 3b3e87129ab..aba3831895c 100644 --- a/src/mongo/s/commands/cluster_aggregate.cpp +++ b/src/mongo/s/commands/cluster_aggregate.cpp @@ -106,11 +106,11 @@ Status appendExplainResults( } BSONObjBuilder shardExplains(result->subobjStart("shards")); - for (const auto& result : shardResults) { - invariant(result.shardHostAndPort); - shardExplains.append(result.shardId.toString(), - BSON("host" << result.shardHostAndPort->toString() << "stages" - << result.swResponse.getValue().data["stages"])); + for (const auto& shardResult : shardResults) { + invariant(shardResult.shardHostAndPort); + shardExplains.append(shardResult.shardId.toString(), + BSON("host" << shardResult.shardHostAndPort->toString() << "stages" + << shardResult.swResponse.getValue().data["stages"])); } return Status::OK(); |