Skip to content

Commit

Permalink
Do not use unsupported API
Browse files Browse the repository at this point in the history
  • Loading branch information
konraddysput committed Jun 25, 2024
1 parent b861450 commit 9b39c88
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,12 @@ private long GetNextStartPosition()
int nextLineBytes = NewRow.Length;
while (numberOfFreeBytes < expectedFreedBytes)
{
if (_logSize.TryDequeue(out long result))
{
numberOfFreeBytes += (result + nextLineBytes);
}
else
if (_logSize.Count == 0)
{
return numberOfFreeBytes;
}

numberOfFreeBytes += (_logSize.Dequeue() + nextLineBytes);
}

return numberOfFreeBytes;
Expand Down

0 comments on commit 9b39c88

Please sign in to comment.