Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 49b1e98

Browse files
author
Alexander Korotkov
committed
Remove extra MarkBufferDirty().
1 parent 3aadd7a commit 49b1e98

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/access/heap/heapam.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2688,6 +2688,8 @@ heap_page_shift_base(Relation relation, Buffer buffer, Page page, bool multi, in
26882688
OffsetNumber offnum,
26892689
maxoff;
26902690

2691+
START_CRIT_SECTION();
2692+
26912693
/* Iterate over page items */
26922694
maxoff = PageGetMaxOffsetNumber(page);
26932695
for (offnum = FirstOffsetNumber;
@@ -2762,6 +2764,8 @@ heap_page_shift_base(Relation relation, Buffer buffer, Page page, bool multi, in
27622764

27632765
PageSetLSN(page, recptr);
27642766
}
2767+
2768+
END_CRIT_SECTION();
27652769
}
27662770

27672771
/*
@@ -2909,7 +2913,6 @@ heap_page_prepare_for_xid(Relation relation, Buffer buffer,
29092913
Assert(xid <= base + delta + MaxShortTransactionId);
29102914

29112915
heap_page_shift_base(relation, buffer, page, multi, delta);
2912-
MarkBufferDirty(buffer);
29132916

29142917
base = multi ? pageSpecial->pd_multi_base : pageSpecial->pd_xid_base;
29152918
Assert(xid >= base + FirstNormalTransactionId);
@@ -2931,7 +2934,6 @@ heap_page_prepare_for_xid(Relation relation, Buffer buffer,
29312934
Assert(xid <= base + delta + MaxShortTransactionId);
29322935

29332936
heap_page_shift_base(relation, buffer, page, multi, delta);
2934-
MarkBufferDirty(buffer);
29352937

29362938
base = multi ? pageSpecial->pd_multi_base : pageSpecial->pd_xid_base;
29372939
Assert(xid >= base + FirstNormalTransactionId);
@@ -2954,7 +2956,6 @@ heap_page_prepare_for_xid(Relation relation, Buffer buffer,
29542956
Assert(xid <= base + delta + MaxShortTransactionId);
29552957

29562958
heap_page_shift_base(relation, buffer, page, multi, delta);
2957-
MarkBufferDirty(buffer);
29582959

29592960
base = multi ? pageSpecial->pd_multi_base : pageSpecial->pd_xid_base;
29602961
Assert(xid >= base + FirstNormalTransactionId);

0 commit comments

Comments
 (0)