private void CommitTransaction()
{
lock (this)
{
if (infoStream != null)
Message("now commit transaction");
// Give deleter a chance to remove files now:
Checkpoint();
// Remove the incRef we did in startTransaction.
deleter.DecRef(localRollbackSegmentInfos);
localRollbackSegmentInfos = null;
System.Diagnostics.Debug.Assert(!HasExternalSegments());
FinishAddIndexes();
}
}