Purge in-memory log when install snapshot is done 64/16364/1
authorTom Pantelis <tpanteli@brocade.com>
Wed, 11 Mar 2015 22:11:33 +0000 (18:11 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Wed, 11 Mar 2015 22:11:33 +0000 (18:11 -0400)
commitfba74fb93e947ecde93ef6685ef6303d2a8bb947
tree9cd28d59ccf486ab9c6a7b7a60b921c3889c4c22
parent691c47ae72532db04f9b2c33cb8a0cef642e5a17
Purge in-memory log when install snapshot is done

In AbstractLeader#handleInstallSnapshotReply, after the last snapshot
chunk has been sent and acknowledged by the follower and, since install
snapshot *should* only happen for a lagging follower, the follower
is most likely caught up at this point so we can be greedy and try
to trim the log and advance replicatedToAllIndex.

Change-Id: Id22dfbcb6e459e3d3f6801d1c6c850bdd42989fa
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractLeader.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.