Lucene.Net.Index.IndexWriter.SetRollbackSegmentInfos C# (CSharp) Method

SetRollbackSegmentInfos() private method

private SetRollbackSegmentInfos ( SegmentInfos infos ) : void
infos SegmentInfos
return void
		private void  SetRollbackSegmentInfos(SegmentInfos infos)
		{
			lock (this)
			{
				rollbackSegmentInfos = (SegmentInfos) infos.Clone();
				System.Diagnostics.Debug.Assert(!rollbackSegmentInfos.HasExternalSegments(directory));
				rollbackSegments = new HashMap<SegmentInfo, int?>();
				int size = rollbackSegmentInfos.Count;
				for (int i = 0; i < size; i++)
					rollbackSegments[rollbackSegmentInfos.Info(i)] = i;
			}
		}
		
IndexWriter