Commit 0f9b1363 authored by unknown's avatar unknown

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


innobase/row/row0sel.c:
  Fix a bug in consistent read through a secondary index
BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
parent 95015b08
jani@janikt.pp.saunalahti.fi jani@janikt.pp.saunalahti.fi
heikki@donna.mysql.fi
...@@ -2207,11 +2207,11 @@ row_sel_get_clust_rec_for_mysql( ...@@ -2207,11 +2207,11 @@ row_sel_get_clust_rec_for_mysql(
visit through secondary index records that would not really visit through secondary index records that would not really
exist in our snapshot. */ 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, && !row_sel_sec_rec_is_for_clust_rec(rec, sec_index,
clust_rec, clust_index)) { clust_rec, clust_index)) {
clust_rec = NULL; clust_rec = NULL;
} }
} }
*out_rec = clust_rec; *out_rec = clust_rec;
......
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