From 65e379f31dacece5689af80b00096e631f8a31dd Mon Sep 17 00:00:00 2001 From: Badrish Chandramouli Date: Mon, 18 Jul 2022 14:44:04 -0700 Subject: [PATCH] Wait index checkpoint phase should behave similarly to wait flush - perform create-new-record during a checkpoint if record is not in the new version (during the snapshot). (#724) --- cs/src/core/Index/FASTER/FASTERImpl.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cs/src/core/Index/FASTER/FASTERImpl.cs b/cs/src/core/Index/FASTER/FASTERImpl.cs index cbb8e2705..3fd820957 100644 --- a/cs/src/core/Index/FASTER/FASTERImpl.cs +++ b/cs/src/core/Index/FASTER/FASTERImpl.cs @@ -688,6 +688,7 @@ private LatchDestination AcquireLatchUpsert(FasterExecut } break; // Normal Processing } + case Phase.WAIT_INDEX_CHECKPOINT: case Phase.WAIT_FLUSH: { if (!CheckEntryVersionNew(logicalAddress)) @@ -1233,6 +1234,7 @@ private LatchDestination AcquireLatchRMW(PendingContext< } break; // Normal Processing } + case Phase.WAIT_INDEX_CHECKPOINT: case Phase.WAIT_FLUSH: { if (!CheckEntryVersionNew(logicalAddress)) @@ -1638,6 +1640,7 @@ internal OperationStatus InternalDelete( } break; // Normal Processing } + case Phase.WAIT_INDEX_CHECKPOINT: case Phase.WAIT_FLUSH: { if (!CheckEntryVersionNew(logicalAddress))