Skip to content

Commit

Permalink
Fix async object retrieval when tombstones set on objects
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Oct 9, 2020
1 parent 18cf54d commit 031aece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cs/src/core/Allocator/GenericAllocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ protected override bool RetrievedFullRecord(byte* record, ref AsyncIOContext<Key
if (endAddress-startAddress > 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;
}
Expand Down

0 comments on commit 031aece

Please sign in to comment.