Skip to content

Commit 9e5d0e9

Browse files
author
Alexander Korotkov
committed
Reloading epoch during locking tuple.
1 parent 5eb10b5 commit 9e5d0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/access/heap/heapam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5092,9 +5092,9 @@ heap_lock_tuple(Relation relation, HeapTuple tuple,
50925092
tuple->t_data = (HeapTupleHeader) PageGetItem(page, lp);
50935093
tuple->t_len = ItemIdGetLength(lp);
50945094
tuple->t_tableOid = RelationGetRelid(relation);
5095-
HeapTupleCopyEpochFromPage(tuple, page);
50965095

50975096
l3:
5097+
HeapTupleCopyEpochFromPage(tuple, page);
50985098
result = HeapTupleSatisfiesUpdate(tuple, cid, *buffer);
50995099

51005100
if (result == HeapTupleInvisible)
@@ -9122,7 +9122,7 @@ heap_xlog_update(XLogReaderState *record, bool hot_update)
91229122
TransactionId pd_xid_epoch = InvalidTransactionId;
91239123
Pointer rec_data;
91249124

9125-
rec_data = (Pointer *) XLogRecGetData(record);
9125+
rec_data = (Pointer) XLogRecGetData(record);
91269126
if (isinit)
91279127
{
91289128
pd_xid_epoch = *((TransactionId *) rec_data);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy