summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db')
-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;
}