Commit ce765fb9 authored by heikki@donna.mysql.fi's avatar heikki@donna.mysql.fi

row0sel.c Fix a bug in consistent read through a secondary index

parent ee93f7c1
jani@janikt.pp.saunalahti.fi
heikki@donna.mysql.fi
......@@ -2207,7 +2207,7 @@ row_sel_get_clust_rec_for_mysql(
visit through secondary index records that would not really
exist in our snapshot. */
if ((old_vers || rec_get_deleted_flag(rec))
if (clust_rec && (old_vers || rec_get_deleted_flag(rec))
&& !row_sel_sec_rec_is_for_clust_rec(rec, sec_index,
clust_rec, clust_index)) {
clust_rec = NULL;
......
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