raft: add atomicInt