Fix SSI-related assertion failure.

Bug #5899, reported by Marko Tiikkaja.

Heikki Linnakangas, reviewed by Kevin Grittner and Dan Ports.
This commit is contained in:
Robert Haas 2011-04-25 09:41:56 -04:00
parent 08a0c2dabc
commit b429519d8d
1 changed files with 1 additions and 1 deletions

View File

@ -2859,7 +2859,7 @@ l2:
* Any existing SIREAD locks on the old tuple must be linked to the new
* tuple for conflict detection purposes.
*/
PredicateLockTupleRowVersionLink(relation, &oldtup, newtup);
PredicateLockTupleRowVersionLink(relation, &oldtup, heaptup);
if (newbuf != buffer)
LockBuffer(newbuf, BUFFER_LOCK_UNLOCK);