Skip to content

Commit

Permalink
fix delete as well
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Mar 7, 2025
1 parent ff13e89 commit 46c83d5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ internal OperationStatus InternalDelete<TInput, TOutput, TContext, TSessionFunct
case LatchDestination.Retry:
goto LatchRelease;
case LatchDestination.CreateNewRecord:
if (stackCtx.recSrc.HasMainLogSrc)
srcRecordInfo = ref stackCtx.recSrc.GetInfo();
goto CreateNewRecord;
default:
Debug.Assert(latchDestination == LatchDestination.NormalProcessing, "Unknown latchDestination value; expected NormalProcessing");
Expand Down Expand Up @@ -176,7 +178,7 @@ internal OperationStatus InternalDelete<TInput, TOutput, TContext, TSessionFunct
// Could not delete in place for some reason - create new record.
goto CreateNewRecord;
}
else if (stackCtx.recSrc.LogicalAddress >= hlogBase.HeadAddress)
else if (stackCtx.recSrc.HasMainLogSrc)
{
// If we already have a deleted record, there's nothing to do.
srcRecordInfo = ref stackCtx.recSrc.GetInfo();
Expand Down

0 comments on commit 46c83d5

Please sign in to comment.