summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.h
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2021-02-16 08:46:14 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2021-02-16 08:46:14 +0200
commita5bcec727b096f634e43f9031440cc1dc9e302c2 (patch)
treec1005cdf624719b0e97e318b0d11cd5ec81bfc52 /sql/wsrep_mysqld.h
parentd0defd1ea2af80a360332fd8c1e60a34e2289213 (diff)
downloadmariadb-git-a5bcec727b096f634e43f9031440cc1dc9e302c2.tar.gz
MDEV-24865 : Server crashes when truncate mysql user tablebb-10.4-MDEV-24865
For truncate we try to find out possible foreign key tables using open_tables. However, table_list was not cleaned up properly and there was no error handling. Fixed by cleaning table_list and adding proper error handling.
Diffstat (limited to 'sql/wsrep_mysqld.h')
-rw-r--r--sql/wsrep_mysqld.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_mysqld.h b/sql/wsrep_mysqld.h
index 29b1c4cf1f4..2ec3943b5c2 100644
--- a/sql/wsrep_mysqld.h
+++ b/sql/wsrep_mysqld.h
@@ -212,7 +212,7 @@ wsrep_sync_wait_upto (THD* thd, wsrep_gtid_t* upto, int timeout);
extern void wsrep_last_committed_id (wsrep_gtid_t* gtid);
extern int wsrep_check_opts();
extern void wsrep_prepend_PATH (const char* path);
-void wsrep_append_fk_parent_table(THD* thd, TABLE_LIST* table, wsrep::key_array* keys);
+extern bool wsrep_append_fk_parent_table(THD* thd, TABLE_LIST* table, wsrep::key_array* keys);
/* Other global variables */
extern wsrep_seqno_t wsrep_locked_seqno;