Browse Source

consul: Adding raft endpoint to force a snapshot

pull/17/head
Armon Dadgar 11 years ago
parent
commit
512c6895e4
  1. 5
      consul/raft_endpoint.go

5
consul/raft_endpoint.go

@ -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…
Cancel
Save