consul: Adding raft endpoint to force a snapshot

This commit is contained in:
Armon Dadgar 2014-03-31 20:09:16 -07:00
parent 243198e49b
commit 0313f62311
1 changed files with 5 additions and 0 deletions

View File

@ -18,3 +18,8 @@ func (r *Raft) RemovePeer(args string, reply *struct{}) error {
future := r.server.raft.RemovePeer(peer)
return future.Error()
}
func (r *Raft) Snapshot(args struct{}, reply *struct{}) error {
future := r.server.raft.Snapshot()
return future.Error()
}