Commit 3152fe56 authored by marko's avatar marko

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.
parent cf981715
......@@ -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;
}
......
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