• Jan Lindström's avatar
    MDEV-27861: Creating partitioned tables should not be allowed with... · c7ad6c6d
    Jan Lindström authored
    MDEV-27861: Creating partitioned tables should not be allowed with wsrep_osu_method=TOI and wsrep_strict_ddl=ON
    
    Problem was incorrect handling of partitioned tables,
    because db_type == DB_TYPE_PARTITION_DB
    wsrep_should_replicate_ddl incorrectly marked
    DDL as not replicatable. However, in partitioned
    tables we should check implementing storage engine
    from table->file->partition_ht() if available because
    if partition handler is InnoDB all DDL should be allowed
    even with wsrep_strict_ddl. For other storage engines
    DDL should not be allowed and error should be issued.
    
    This is 10.5 version of the fix.
    Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
    c7ad6c6d
galera_partitioned_tables.result 5.83 KB