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

DoFlush() private method

private DoFlush ( bool flushDocStores, bool flushDeletes ) : bool
flushDocStores bool
flushDeletes bool
return bool
		private bool DoFlush(bool flushDocStores, bool flushDeletes)
		{
			lock (this)
			{
                try
                {
                    try
                    {
                        return DoFlushInternal(flushDocStores, flushDeletes);
                    }
                    finally
                    {
                        if (docWriter.DoBalanceRAM())
                        {
                            docWriter.BalanceRAM();
                        }
                    }
                }
                finally
                {
                    docWriter.ClearFlushPending();
                }
			}
		}
		
IndexWriter