Commit 0745c8f2 authored by msvensson@devsrv-b.mysql.com's avatar msvensson@devsrv-b.mysql.com

Merge msvensson@bk-internal.mysql.com:/home/bk/mysql-5.0

into  devsrv-b.mysql.com:/space/magnus/mysql-5.0
parents cbd1ea07 e5592190
...@@ -3136,10 +3136,10 @@ TRP_ROR_INTERSECT *get_best_covering_ror_intersect(PARAM *param, ...@@ -3136,10 +3136,10 @@ TRP_ROR_INTERSECT *get_best_covering_ror_intersect(PARAM *param,
/* F=F-covered by first(I) */ /* F=F-covered by first(I) */
bitmap_union(&covered_fields, &(*ror_scan_mark)->covered_fields); bitmap_union(&covered_fields, &(*ror_scan_mark)->covered_fields);
all_covered= bitmap_is_subset(&param->needed_fields, &covered_fields); all_covered= bitmap_is_subset(&param->needed_fields, &covered_fields);
} while (!all_covered && (++ror_scan_mark < ror_scans_end)); } while ((++ror_scan_mark < ror_scans_end) && !all_covered);
if (!all_covered) if (!all_covered || (ror_scan_mark - tree->ror_scans) == 1)
DBUG_RETURN(NULL); /* should not happen actually */ DBUG_RETURN(NULL);
/* /*
Ok, [tree->ror_scans .. ror_scan) holds covering index_intersection with Ok, [tree->ror_scans .. ror_scan) holds covering index_intersection with
......
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