goraft / raft

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

fix(log): truncate file and reset offset correctly #225

Open yichengq opened 10 years ago

yichengq commented 10 years ago

coreos/etcd#829

yichengq commented 10 years ago

@xiangli-cmu Based on our discussion, I make the above changes.

philips commented 10 years ago

This makes sense to me. I wish the commit had a description like:

"If we need to truncate the file because of a decoding error then seek back to the last known good entry"

yichengq commented 10 years ago

refreshed.

philips commented 10 years ago

lgtm