branches/zip: row_sel_get_clust_rec_for_mysql(): Similar to the function

row_sel_get_clust_rec(), return if a previous version of the clustered index
record does not exist in the read view.  This bug was made and found by
Heikki.  It was harmless as long as the clustered index record contained
a long enough local prefix of externally stored columns, to allow secondary
index records to be built without fetching BLOBs.

InnoDB transactions should never look at a clustered index record whose
transaction identifier (DB_TRX_ID) is not visible in the transaction's
read view.
This commit is contained in:
marko 2008-01-21 09:51:40 +00:00
parent 0d59bf8ee6
commit 793b1fe3fb

View file

@ -2994,7 +2994,7 @@ row_sel_get_clust_rec_for_mysql(
clust_rec, offsets, offset_heap, &old_vers,
mtr);
if (err != DB_SUCCESS) {
if (err != DB_SUCCESS || old_vers == NULL) {
goto err_exit;
}