Skip to content

Commit

Permalink
Call stableSnapTo when commiting a snapshot in multinode.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarnell committed Feb 9, 2015
1 parent dd2a463 commit 722283a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions raft/multinode.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (g *groupState) commitReady(rd Ready) {
}
if !IsEmptySnap(rd.Snapshot) {
g.prevSnapi = rd.Snapshot.Metadata.Index
g.raft.raftLog.stableSnapTo(g.prevSnapi)
}
if len(rd.Entries) > 0 {
// TODO(bdarnell): stableTo(rd.Snapshot.Index) if any
Expand Down

0 comments on commit 722283a

Please sign in to comment.