raft: write entry 0 into log
raft: restart using last written entry also