summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2015-05-20 06:50:12 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2015-05-20 11:43:36 -0400
commitdefcaffcecef2f3babd4c901e3fdd5573dca39f3 (patch)
tree91418a37febecd72beb9120d46f30645e3437ade
parente0125d451df67d020eabe78a41db50450ffbd94d (diff)
downloadmongo-defcaffcecef2f3babd4c901e3fdd5573dca39f3.tar.gz
SERVER-18582 fix parameter hiding in ReplSetHeartbeatResponse::initialize()
-rw-r--r--src/mongo/db/repl/repl_set_heartbeat_response.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/repl_set_heartbeat_response.cpp b/src/mongo/db/repl/repl_set_heartbeat_response.cpp
index 4b18d4df39f..4be61c0f279 100644
--- a/src/mongo/db/repl/repl_set_heartbeat_response.cpp
+++ b/src/mongo/db/repl/repl_set_heartbeat_response.cpp
@@ -236,13 +236,13 @@ namespace {
Status status = bsonExtractTimestampField(opTime, kTimestampFieldName, &ts);
if (!status.isOK())
return status;
- long long term;
- status = bsonExtractIntegerField(opTime, kTermFieldName, &term);
+ long long extractedTerm;
+ status = bsonExtractIntegerField(opTime, kTermFieldName, &extractedTerm);
if (!status.isOK())
return status;
_opTimeSet = true;
- _opTime = OpTime(ts, term);
+ _opTime = OpTime(ts, extractedTerm);
// since a v1 OpTime was in the response, the member must be part of a replset
_isReplSet = true;
}