Reset replyReceivedForOffset correctly 31/82731/2
authorTomas Cere <tomas.cere@pantheon.tech>
Tue, 25 Jun 2019 12:16:50 +0000 (14:16 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 26 Jun 2019 10:10:45 +0000 (10:10 +0000)
commit458a2556a1adda963a6daf525e9bc0dceddb40ba
tree370850c2ea6a5ae14e441eadce2f26b2a1ed9589
parent5a650a307d97b54ba07e0861bd2548a6d31cac62
Reset replyReceivedForOffset correctly

replyReceivedForOffset needs to be set to the initial -1
otherwise we can have multiple sendSnapshotChunk()'s called
before receiving any replies. Which would fail due to the already
running stopwatch.

Change-Id: Ie708f0c2454a87f77cba97e4fed8a9ffc866b624
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
(cherry picked from commit 78282f605d76598e3b0e30cfc660a3a6c38ace48)
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/LeaderInstallSnapshotState.java