Skip to content

Commit

Permalink
Merge pull request etcd-io#13 from bdarnell/multinode-snapshot
Browse files Browse the repository at this point in the history
Call stableSnapTo when commiting a snapshot in multinode.
  • Loading branch information
bdarnell committed Feb 9, 2015
2 parents dd2a463 + 722283a commit 2ae264b
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 2ae264b

Please sign in to comment.