mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#41079 information_schema.schema_privileges is limited to 7680 records.
The problem is that we cannot insert new record into memory table when table size exceeds max memory table size. The fix is to use schema_table_store_record() function which converts memory table into MyISAM in case of table size exceeding. Note: There is no test case for this bug, the reason is that 1. The code that was added already is checked(i.e. works) with existing tests 2. Correct work of schema_table_store_record() is checked with other test cases (information_schema tests) So new code is fully covered with existing test cases.
This commit is contained in:
@ -44,7 +44,7 @@ static void
|
||||
append_algorithm(TABLE_LIST *table, String *buff);
|
||||
static int
|
||||
view_store_create_info(THD *thd, TABLE_LIST *table, String *buff);
|
||||
static bool schema_table_store_record(THD *thd, TABLE *table);
|
||||
bool schema_table_store_record(THD *thd, TABLE *table);
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
@ -1884,7 +1884,7 @@ typedef struct st_index_field_values
|
||||
1 error
|
||||
*/
|
||||
|
||||
static bool schema_table_store_record(THD *thd, TABLE *table)
|
||||
bool schema_table_store_record(THD *thd, TABLE *table)
|
||||
{
|
||||
int error;
|
||||
if ((error= table->file->write_row(table->record[0])))
|
||||
|
Reference in New Issue
Block a user