add commit index for log