diff options
author | sjaakola <seppo.jaakola@iki.fi> | 2021-12-15 22:29:32 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2021-12-20 13:34:54 +0200 |
commit | 49791cbc6f76c4f4c1bb436dbe26cec6177ee279 (patch) | |
tree | 53e914744200b518e5ba751de70001c0b660819f /include | |
parent | 4b25790eb3d09404230bb873d3e963b1eb600974 (diff) | |
download | mariadb-git-49791cbc6f76c4f4c1bb436dbe26cec6177ee279.tar.gz |
10.4-MDEV-27275 CREATE TABLE with FK not safe for PA
This commit contains a fix, where the replication write set for a CREATE TABLE
will contain, as certification keys, table names for all FK references.
With this, all DML for the FK parent tables will conflict with the CREATE TABLE
statement.
There is also new test galera.MDEV-27276 to verify the fix.
Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/wsrep.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wsrep.h b/include/wsrep.h index 2a9036956cc..1b645207f00 100644 --- a/include/wsrep.h +++ b/include/wsrep.h @@ -68,7 +68,7 @@ //#define WSREP_WARN(...) #define WSREP_ERROR(...) #define WSREP_TO_ISOLATION_BEGIN(db_, table_, table_list_) do { } while(0) -#define WSREP_TO_ISOLATION_BEGIN_ALTER(db_, table_, table_list_, alter_info_) +#define WSREP_TO_ISOLATION_BEGIN_ALTER(db_, table_, table_list_, alter_info_, fk_tables_) #define WSREP_TO_ISOLATION_END #define WSREP_TO_ISOLATION_BEGIN_WRTCHK(db_, table_, table_list_) #define WSREP_SYNC_WAIT(thd_, before_) |