FASTER icon indicating copy to clipboard operation
FASTER copied to clipboard

numBytesToRead out of range when recover from large amounts of records

Open aiomind opened this issue 5 months ago • 0 comments

FASTERA\cs\src\core\Allocator\MallocFixedPageSize.cs Line 553

int numRecords = (int)numBytesToRead / RecordSize;

When numBytesToRead greater than int.Max() recover will stuck

My fix: int numRecords = (int)(numBytesToRead / (ulong)RecordSize);

Not sure if this will cause other problems

aiomind avatar Sep 23 '25 08:09 aiomind