row0sel.c, row0ins.c:

  Fix error in previous push
parent 01eb3d1e
...@@ -792,8 +792,10 @@ row_ins_foreign_check_on_constraint( ...@@ -792,8 +792,10 @@ row_ins_foreign_check_on_constraint(
clust_rec = btr_pcur_get_rec(cascade->pcur); clust_rec = btr_pcur_get_rec(cascade->pcur);
if (btr_pcur_get_low_match(cascade->pcur) if (!page_rec_is_user_rec(clust_rec)
< dict_index_get_n_unique(clust_index)) { || btr_pcur_get_low_match(cascade->pcur)
< dict_index_get_n_unique(clust_index)) {
fprintf(stderr, fprintf(stderr,
"InnoDB: error in cascade of a foreign key op\n" "InnoDB: error in cascade of a foreign key op\n"
"InnoDB: index %s table %s\n", index->name, "InnoDB: index %s table %s\n", index->name,
......
...@@ -609,8 +609,12 @@ row_sel_get_clust_rec( ...@@ -609,8 +609,12 @@ row_sel_get_clust_rec(
clust_rec = btr_pcur_get_rec(&(plan->clust_pcur)); clust_rec = btr_pcur_get_rec(&(plan->clust_pcur));
if (btr_pcur_get_low_match(&(plan->clust_pcur)) /* Note: only if the search ends up on a non-infimum record is the
< dict_index_get_n_unique(index)) { low_match value the real match to the search tuple */
if (!page_rec_is_user_rec(clust_rec)
|| btr_pcur_get_low_match(&(plan->clust_pcur))
< dict_index_get_n_unique(index)) {
ut_a(rec_get_deleted_flag(rec)); ut_a(rec_get_deleted_flag(rec));
ut_a(node->read_view); ut_a(node->read_view);
...@@ -2322,8 +2326,12 @@ row_sel_get_clust_rec_for_mysql( ...@@ -2322,8 +2326,12 @@ row_sel_get_clust_rec_for_mysql(
clust_rec = btr_pcur_get_rec(prebuilt->clust_pcur); clust_rec = btr_pcur_get_rec(prebuilt->clust_pcur);
if (btr_pcur_get_low_match(prebuilt->clust_pcur) /* Note: only if the search ends up on a non-infimum record is the
< dict_index_get_n_unique(clust_index)) { low_match value the real match to the search tuple */
if (!page_rec_is_user_rec(clust_rec)
|| btr_pcur_get_low_match(prebuilt->clust_pcur)
< dict_index_get_n_unique(clust_index)) {
/* In a rare case it is possible that no clust rec is found /* In a rare case it is possible that no clust rec is found
for a delete-marked secondary index record: if in row0umod.c for a delete-marked secondary index record: if in row0umod.c
......
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