Skip to content

Commit

Permalink
Special case for RMW with NullDevice to avoid issuing IO below HeadAd…
Browse files Browse the repository at this point in the history
…dress. (#850)

Similar to what is already done for Read.
  • Loading branch information
badrishc authored Jul 14, 2023
1 parent 2025daa commit 6217eaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cs/src/core/Index/FASTER/Implementation/InternalRMW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ internal OperationStatus InternalRMW<Input, Output, Context, FasterSession>(ref
}
else if (stackCtx.recSrc.LogicalAddress >= hlog.BeginAddress)
{
if (hlog.IsNullDevice)
goto CreateNewRecord;

// Disk Region: Need to issue async io requests. Locking will be checked on pending completion.
status = OperationStatus.RECORD_ON_DISK;
latchDestination = LatchDestination.CreatePendingContext;
Expand Down

0 comments on commit 6217eaf

Please sign in to comment.