From bc91efe0ae5406d6342d943f7279a6c365c920a4 Mon Sep 17 00:00:00 2001 From: "stewart@mysql.com" <> Date: Wed, 28 Jun 2006 01:07:44 +1000 Subject: BUG#20725 MySQLD cluster use "fast count" is broken Post recent handler changes, fast count(*) for cluster was broken. Seeing as we maintain an exact count for ndb, we can easily use this for an optimisation. With this patch, and use_exact_count DISABLED, we will use the fast way of getting count(*) but not use the exact count for the optimiser. With this patch and use_exact_count ENABLED, we will use the fast way of getting count(*) and use the exact count for the optimiser. --- sql/ha_ndbcluster.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/ha_ndbcluster.h') diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h index 2e78a00ef94..d03a6cc4c5d 100644 --- a/sql/ha_ndbcluster.h +++ b/sql/ha_ndbcluster.h @@ -622,6 +622,7 @@ class ha_ndbcluster: public handler int read_multi_range_next(KEY_MULTI_RANGE **found_range_p); bool get_error_message(int error, String *buf); + ha_rows records(); void info(uint); void get_dynamic_partition_info(PARTITION_INFO *stat_info, uint part_id); int extra(enum ha_extra_function operation); -- cgit v1.2.1