raft: use index in entry