internal System.String CloseDocStore()
{
lock (this)
{
System.Diagnostics.Debug.Assert(AllThreadsIdle());
if (infoStream != null)
Message("closeDocStore: " + openFiles.Count + " files to flush to segment " + docStoreSegment + " numDocs=" + numDocsInStore);
bool success = false;
try
{
InitFlushState(true);
closedFiles.Clear();
consumer.CloseDocStore(flushState);
System.Diagnostics.Debug.Assert(0 == openFiles.Count);
System.String s = docStoreSegment;
docStoreSegment = null;
docStoreOffset = 0;
numDocsInStore = 0;
success = true;
return s;
}
finally
{
if (!success)
{
Abort();
}
}
}
}