diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-05-20 06:50:12 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-05-20 11:43:36 -0400 |
commit | defcaffcecef2f3babd4c901e3fdd5573dca39f3 (patch) | |
tree | 91418a37febecd72beb9120d46f30645e3437ade | |
parent | e0125d451df67d020eabe78a41db50450ffbd94d (diff) | |
download | mongo-defcaffcecef2f3babd4c901e3fdd5573dca39f3.tar.gz |
SERVER-18582 fix parameter hiding in ReplSetHeartbeatResponse::initialize()
-rw-r--r-- | src/mongo/db/repl/repl_set_heartbeat_response.cpp | 6 |
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; } |