开始
增加SegmentInfos对应的索引文件的计数引用
isCommit是否
为true?
根据新的SegmentInfos
获取CommitPoint
添加CommitPoint到CommitPoint集合commits中
执行索引删除策略
尝试删除lastFiles中的索引文件
将这次SegmentInfo对应的索引文件添加到lastFiles中
清空lastFiles中的索引文件
结束
是
否
SegmentInfos
&&
boolean