Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix SSI-related assertion failure.
authorRobert Haas <rhaas@postgresql.org>
Mon, 25 Apr 2011 13:41:56 +0000 (09:41 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 25 Apr 2011 13:47:28 +0000 (09:47 -0400)
Bug #5899, reported by Marko Tiikkaja.

Heikki Linnakangas, reviewed by Kevin Grittner and Dan Ports.

src/backend/access/heap/heapam.c

index 1fbd8b39b4a73f6aee337fccf2dcce548d0850bb..346d6b964d541d02dc60bf3f18c7a4e10274859b 100644 (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);