raft: use index in entry
Merge pull request #1829 from xiang90/raft_index

raft: use index in entry