change > to >=. > will cause panic when resp.CommitIndex equals prevLogIndex