public void MarkAsBuffered(long start, long end)
{
lock (this.WriteLock)
{
this.RangeCollection.AddRange(start, end);
if (this.WritesWithoutIndexUpdate >= Constants.INDEX_UPDATE_WRITE_INTERVAL)
{
this.UpdateIndexFile();
this.WritesWithoutIndexUpdate = 0;
}
else
this.WritesWithoutIndexUpdate++;
}
}