Skip to content

Commit

Permalink
Wait index checkpoint phase should behave similarly to wait flush - p…
Browse files Browse the repository at this point in the history
…erform create-new-record during a checkpoint if record is not in the new version (during the snapshot). (#724)
  • Loading branch information
badrishc authored Jul 18, 2022
1 parent 61b7ec8 commit 65e379f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cs/src/core/Index/FASTER/FASTERImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ private LatchDestination AcquireLatchUpsert<Input, Output, Context>(FasterExecut
}
break; // Normal Processing
}
case Phase.WAIT_INDEX_CHECKPOINT:
case Phase.WAIT_FLUSH:
{
if (!CheckEntryVersionNew(logicalAddress))
Expand Down Expand Up @@ -1233,6 +1234,7 @@ private LatchDestination AcquireLatchRMW<Input, Output, Context>(PendingContext<
}
break; // Normal Processing
}
case Phase.WAIT_INDEX_CHECKPOINT:
case Phase.WAIT_FLUSH:
{
if (!CheckEntryVersionNew(logicalAddress))
Expand Down Expand Up @@ -1638,6 +1640,7 @@ internal OperationStatus InternalDelete<Input, Output, Context, FasterSession>(
}
break; // Normal Processing
}
case Phase.WAIT_INDEX_CHECKPOINT:
case Phase.WAIT_FLUSH:
{
if (!CheckEntryVersionNew(logicalAddress))
Expand Down

0 comments on commit 65e379f

Please sign in to comment.