Commit 3a1eedef authored by Sushant Mahajan's avatar Sushant Mahajan

added log persistence for leader

parent e6e02994
...@@ -739,6 +739,7 @@ func (rft *Raft) leader() int { ...@@ -739,6 +739,7 @@ func (rft *Raft) leader() int {
rft.LogArray = append(rft.LogArray, entry) rft.LogArray = append(rft.LogArray, entry)
//todo:apply to state machine //todo:apply to state machine
//todo:respond to client //todo:respond to client
rft.persistLog()
case *AppendRPC: case *AppendRPC:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment