mirror of https://github.com/status-im/consul.git
consul: Adding raft endpoint to force a snapshot
This commit is contained in:
parent
8f2ef0d7d2
commit
512c6895e4
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue