Commit b429519d authored by Robert Haas's avatar Robert Haas

Fix SSI-related assertion failure.

Bug #5899, reported by Marko Tiikkaja.

Heikki Linnakangas, reviewed by Kevin Grittner and Dan Ports.
parent 08a0c2da
...@@ -2859,7 +2859,7 @@ l2: ...@@ -2859,7 +2859,7 @@ l2:
* Any existing SIREAD locks on the old tuple must be linked to the new * Any existing SIREAD locks on the old tuple must be linked to the new
* tuple for conflict detection purposes. * tuple for conflict detection purposes.
*/ */
PredicateLockTupleRowVersionLink(relation, &oldtup, newtup); PredicateLockTupleRowVersionLink(relation, &oldtup, heaptup);
if (newbuf != buffer) if (newbuf != buffer)
LockBuffer(newbuf, BUFFER_LOCK_UNLOCK); LockBuffer(newbuf, BUFFER_LOCK_UNLOCK);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment