From 8888c7dfaceaec477ab65b50e4c78749da68adb6 Mon Sep 17 00:00:00 2001 From: Badrish Chandramouli Date: Thu, 8 Nov 2018 15:35:05 -0800 Subject: [PATCH] Fixes in traversal in case of hash collisions. --- cs/src/core/Index/FASTER/AsyncIO.cs | 1 + cs/src/core/Index/FASTER/FASTERImpl.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cs/src/core/Index/FASTER/AsyncIO.cs b/cs/src/core/Index/FASTER/AsyncIO.cs index 8e5470e7..c9e27aca 100644 --- a/cs/src/core/Index/FASTER/AsyncIO.cs +++ b/cs/src/core/Index/FASTER/AsyncIO.cs @@ -131,6 +131,7 @@ namespace FASTER.core Value.Free(Layout.GetValue(physicalAddress)); } ctx.record.Return(); + ctx.record = ctx.objBuffer = default(SectorAlignedMemory); AsyncGetFromDisk(ctx.logicalAddress, requiredBytes, AsyncGetFromDiskCallback, ctx); } else diff --git a/cs/src/core/Index/FASTER/FASTERImpl.cs b/cs/src/core/Index/FASTER/FASTERImpl.cs index 6ac86e40..137f4278 100644 --- a/cs/src/core/Index/FASTER/FASTERImpl.cs +++ b/cs/src/core/Index/FASTER/FASTERImpl.cs @@ -229,6 +229,8 @@ namespace FASTER.core InternalContinuePendingReadCopyToTail(ctx, request, ref pendingContext); } } + else + return OperationStatus.NOTFOUND; return OperationStatus.SUCCESS; }