public virtual bool VerifyDocCounts()
{
lock (this)
{
int count;
if (LiveDocs_Renamed != null)
{
count = 0;
for (int docID = 0; docID < Info.Info.DocCount; docID++)
{
if (LiveDocs_Renamed.Get(docID))
{
count++;
}
}
}
else
{
count = Info.Info.DocCount;
}
Debug.Assert(Info.Info.DocCount - Info.DelCount - PendingDeleteCount_Renamed == count, "info.docCount=" + Info.Info.DocCount + " info.getDelCount()=" + Info.DelCount + " pendingDeleteCount=" + PendingDeleteCount_Renamed + " count=" + count);
return true;
}
}