mariadb/storage/innobase/row
Annamalai Gurusami 6193c63211 Bug#18185930 UPD_NODE_INSERT_BLOB CAUSES BTR_EXTERN_OWNER_FLAG ASSERTION
Problem:

In the clustered index, when an update operation is done the overall
scenario (after rb#4479) is as follows:

1.  Delete mark the old record that is to be updated.
2.  The old record disowns the blobs.
3.  Insert the new record into clustered index.
4.  For non-updated blobs, new record must own it. Verified by assert.
5.  For non-updated blobs, in new record marked as inherited.

Scenario involving DB_LOCK_WAIT:

If step 3 times out, then we will skip 1 and 2 and will continue from
step 3.  This skipping is achieved by the UPD_NODE_INSERT_BLOB state.
In this case, step 4 is not correct.  Because of step 1, the new
record need not own the blobs.  Hence the assert failure.

Solution:

The assert in step 4 is removed.  Instead code is added to ensure that
the record owns the blob.  

Note:

This is a regression caused by rb#4479.

rb#4571 approved by Marko
2014-02-11 16:44:37 +05:30
..
row0ext.c Fixing the bug 16919882 - WRONG FSF ADDRESS IN LICENSES HEADERS 2013-06-10 22:29:41 +02:00
row0ins.c Bug#18185930 UPD_NODE_INSERT_BLOB CAUSES BTR_EXTERN_OWNER_FLAG ASSERTION 2014-02-11 16:44:37 +05:30
row0merge.c Bug 16876388 - PLEASE BACKPORT BUG#16208542 TO 5.5 2013-06-25 09:42:54 +08:00
row0mysql.c Merge from mysql-5.1 to mysql-5.5 2013-07-25 15:31:06 +05:30
row0purge.c Merge mysql-5.1 to mysql-5.5. 2011-09-26 10:08:42 +03:00
row0row.c Merge mysql-5.1 to mysql-5.5. 2012-02-27 23:24:36 +02:00
row0sel.c post-push fix for bug#17565888/bug#14621190 2013-10-28 17:08:31 +01:00
row0uins.c Merge mysql-5.1 to mysql-5.5. 2013-08-14 10:24:36 +03:00
row0umod.c Merge mysql-5.1 to mysql-5.5. 2013-08-15 15:34:12 +03:00
row0undo.c Fixing the bug 16919882 - WRONG FSF ADDRESS IN LICENSES HEADERS 2013-06-10 22:29:41 +02:00
row0upd.c Bug#18185930 UPD_NODE_INSERT_BLOB CAUSES BTR_EXTERN_OWNER_FLAG ASSERTION 2014-02-11 16:44:37 +05:30
row0vers.c Fixing the bug 16919882 - WRONG FSF ADDRESS IN LICENSES HEADERS 2013-06-10 22:29:41 +02:00