summaryrefslogtreecommitdiff
path: root/sql/sql_statistics.h
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-10-05 04:24:07 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2016-11-02 09:45:43 -0400
commit3daf89ced99b41ad6144cd1d4236959e641f5592 (patch)
tree0f333f4ef121ee453757271ae77319b7e4737563 /sql/sql_statistics.h
parent6dbfe7f399d121dc2a040b21c96777c0a47141fb (diff)
downloadmariadb-git-3daf89ced99b41ad6144cd1d4236959e641f5592.tar.gz
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
Diffstat (limited to 'sql/sql_statistics.h')
-rw-r--r--sql/sql_statistics.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_statistics.h b/sql/sql_statistics.h
index 8e5f8107849..20b2eb66449 100644
--- a/sql/sql_statistics.h
+++ b/sql/sql_statistics.h
@@ -107,6 +107,7 @@ double get_column_range_cardinality(Field *field,
key_range *min_endp,
key_range *max_endp,
uint range_flag);
+bool is_stat_table(const char *db, const char *table);
class Histogram
{