Commit 81b19542 authored by unknown's avatar unknown

BUG#19914 SELECT COUNT(*) sometimes returns MAX_INT on cluster tables

update partition engine for handler::info returning int


sql/ha_partition.cc:
  update for handler::info returning int.
sql/ha_partition.h:
  update for handler::info returning int.
parent 24584808
...@@ -4214,7 +4214,7 @@ void ha_partition::include_partition_fields_in_used_fields() ...@@ -4214,7 +4214,7 @@ void ha_partition::include_partition_fields_in_used_fields()
retrieving statistics data. retrieving statistics data.
*/ */
void ha_partition::info(uint flag) int ha_partition::info(uint flag)
{ {
handler *file, **file_array; handler *file, **file_array;
DBUG_ENTER("ha_partition:info"); DBUG_ENTER("ha_partition:info");
...@@ -4378,7 +4378,7 @@ void ha_partition::info(uint flag) ...@@ -4378,7 +4378,7 @@ void ha_partition::info(uint flag)
stats.update_time= file->stats.update_time; stats.update_time= file->stats.update_time;
} while (*(++file_array)); } while (*(++file_array));
} }
DBUG_VOID_RETURN; DBUG_RETURN(0);
} }
......
...@@ -449,7 +449,7 @@ public: ...@@ -449,7 +449,7 @@ public:
purposes. purposes.
------------------------------------------------------------------------- -------------------------------------------------------------------------
*/ */
virtual void info(uint); virtual int info(uint);
void get_dynamic_partition_info(PARTITION_INFO *stat_info, void get_dynamic_partition_info(PARTITION_INFO *stat_info,
uint part_id); uint part_id);
virtual int extra(enum ha_extra_function operation); virtual int extra(enum ha_extra_function operation);
......
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