1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-10957: Assertion failure when dropping a myisam table with wsrep_replicate_myisam enabled

Internal updates to system statistical tables could wrongly
trigger an additional total-order replication if wsrep_repli
-cate_myisam is enabled.
Fixed by adding a check to skip total-order replication for
stat tables.

Test: galera.galera_var_replicate_myisam_on
This commit is contained in:
Nirbhay Choubey
2016-10-05 04:24:07 -04:00
parent 6dbfe7f399
commit 3daf89ced9
3 changed files with 20 additions and 0 deletions

View File

@ -3840,3 +3840,21 @@ double Histogram::point_selectivity(double pos, double avg_sel)
return sel;
}
/*
Check whether the table is one of the persistent statistical tables.
*/
bool is_stat_table(const char *db, const char *table)
{
DBUG_ASSERT(db && table);
if (!memcmp(db, stat_tables_db_name.str, stat_tables_db_name.length))
{
for (uint i= 0; i < STATISTICS_TABLES; i ++)
{
if (!memcmp(table, stat_table_name[i].str, stat_table_name[i].length))
return true;
}
}
return false;
}