Skip to content

Commit 65e379f

Browse files
authored
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)
1 parent 61b7ec8 commit 65e379f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cs/src/core/Index/FASTER/FASTERImpl.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ private LatchDestination AcquireLatchUpsert<Input, Output, Context>(FasterExecut
688688
}
689689
break; // Normal Processing
690690
}
691+
case Phase.WAIT_INDEX_CHECKPOINT:
691692
case Phase.WAIT_FLUSH:
692693
{
693694
if (!CheckEntryVersionNew(logicalAddress))
@@ -1233,6 +1234,7 @@ private LatchDestination AcquireLatchRMW<Input, Output, Context>(PendingContext<
12331234
}
12341235
break; // Normal Processing
12351236
}
1237+
case Phase.WAIT_INDEX_CHECKPOINT:
12361238
case Phase.WAIT_FLUSH:
12371239
{
12381240
if (!CheckEntryVersionNew(logicalAddress))
@@ -1638,6 +1640,7 @@ internal OperationStatus InternalDelete<Input, Output, Context, FasterSession>(
16381640
}
16391641
break; // Normal Processing
16401642
}
1643+
case Phase.WAIT_INDEX_CHECKPOINT:
16411644
case Phase.WAIT_FLUSH:
16421645
{
16431646
if (!CheckEntryVersionNew(logicalAddress))

0 commit comments

Comments
 (0)