raft: use const firstId to track ids