goraft / raft

UNMAINTAINED: A Go implementation of the Raft distributed consensus protocol.
MIT License
2.43k stars 479 forks source link

feat(server): add UpdatePeer #200

Closed yichengq closed 10 years ago

yichengq commented 10 years ago

The function is used to update peer info and rewrite conf file.

This is caused by coreos/etcd#639 I want to update the peer information to adopt new IP when joining with different IP. Then I found it cannot load these information when restart because commitIndex in conf decides how many commits raft will load from the log when start, and I didn't update it. So I need to add this function to update conf file to load correct information.

xiang90 commented 10 years ago

Talked about this over phone. closed this one.