diff --git a/cs/src/core/Allocator/GenericAllocator.cs b/cs/src/core/Allocator/GenericAllocator.cs index 73e7a3029..95e6e9a92 100644 --- a/cs/src/core/Allocator/GenericAllocator.cs +++ b/cs/src/core/Allocator/GenericAllocator.cs @@ -883,6 +883,9 @@ protected override bool RetrievedFullRecord(byte* record, ref AsyncIOContext int.MaxValue) throw new FasterException("Size of key-value exceeds max of 2GB: " + (endAddress - startAddress)); + if (startAddress < 0) + startAddress = 0; + AsyncGetFromDisk(startAddress, (int)(endAddress - startAddress), ctx, ctx.record); return false; }