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

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

parent ee93f7c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
jani@janikt.pp.saunalahti.fi
heikki@donna.mysql.fi
+2 −2
Original line number Diff line number Diff line
@@ -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;