chore: add interface for FlushCommitIndex