this.autoCommit = autoCommit;
if (!autoCommit) {
rollbackSegmentInfos = (SegmentInfos) segmentInfos.clone();
}
docWriter = new DocumentsWriter(directory, this);
docWriter.setInfoStream(infoStream);
// Default deleter (for backwards compatibility) is
// KeepOnlyLastCommitDeleter:
deleter = new IndexFileDeleter(directory,