Storage::ProcessIncoming(): Don't override parameter with local.

This commit is contained in:
Peter Johnson
2015-08-02 23:20:42 -07:00
parent 7db00575c9
commit 53a0531def

View File

@@ -137,10 +137,10 @@ void Storage::ProcessIncoming(std::shared_ptr<Message> msg,
if (seq_num < entry->seq_num) {
if (may_need_update) {
auto queue_outgoing = m_queue_outgoing;
auto msg = Message::EntryUpdate(entry->id, entry->seq_num.value(),
entry->value);
auto outmsg = Message::EntryUpdate(entry->id, entry->seq_num.value(),
entry->value);
lock.unlock();
queue_outgoing(msg, nullptr, nullptr);
queue_outgoing(outmsg, nullptr, nullptr);
}
return;
}