Skip to content

Commit b429519

Browse files
committed
Fix SSI-related assertion failure.
Bug #5899, reported by Marko Tiikkaja. Heikki Linnakangas, reviewed by Kevin Grittner and Dan Ports.
1 parent 08a0c2d commit b429519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/heap/heapam.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,7 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
28592859
* Any existing SIREAD locks on the old tuple must be linked to the new
28602860
* tuple for conflict detection purposes.
28612861
*/
2862-
PredicateLockTupleRowVersionLink(relation, &oldtup, newtup);
2862+
PredicateLockTupleRowVersionLink(relation, &oldtup, heaptup);
28632863

28642864
if (newbuf != buffer)
28652865
LockBuffer(newbuf, BUFFER_LOCK_UNLOCK);

0 commit comments

Comments
 (0)