From 1517ce9cd06ca1fe1f19c544f799e60f74732608 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Mon, 14 Aug 2017 08:23:43 -0400 Subject: SERVER-30570 Change the name of a loop variable masking a parameter name --- src/mongo/s/commands/cluster_aggregate.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mongo') 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(); -- cgit v1.2.1