Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Mar 7, 2025
1 parent dac62d7 commit ff13e89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ internal OperationStatus InternalRMW<TInput, TOutput, TContext, TSessionFunction
status = OperationStatus.RETRY_LATER;
goto LatchRelease;
}
if (stackCtx.recSrc.LogicalAddress >= hlogBase.HeadAddress)
if (stackCtx.recSrc.HasMainLogSrc)
{
// Safe Read-Only Region: CopyUpdate to create a record in the mutable region.
srcRecordInfo = ref stackCtx.recSrc.GetInfo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,10 @@ internal OperationStatus InternalUpsert<TInput, TOutput, TContext, TSessionFunct
// ConcurrentWriter failed (e.g. insufficient space, another thread set Tombstone, etc). Write a new record, but track that we have to seal and unlock this one.
goto CreateNewRecord;
}
if (stackCtx.recSrc.LogicalAddress >= hlogBase.HeadAddress)
if (stackCtx.recSrc.HasMainLogSrc)
{
// Safe Read-Only Region: Create a record in the mutable region, but set srcRecordInfo in case we are eliding.
if (stackCtx.recSrc.HasMainLogSrc)
srcRecordInfo = ref stackCtx.recSrc.GetInfo();
srcRecordInfo = ref stackCtx.recSrc.GetInfo();
goto CreateNewRecord;
}

Expand Down

0 comments on commit ff13e89

Please sign in to comment.