mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Node set the applied to committed right after it sends out Ready to application. This is not correct since the application has not actually applied the entries at that point. We add a Advance interface to Node. Application needs to call Advance to tell raft Node its progress. Also this change can avoid unnecessary copying when application is still applying entires but there are more entries to be applied.