mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-34269: post-fix code simplification
The code is slightly simplified taking into account the fact that partition_ht() always returns a normal hton when there is no partitioning.
This commit is contained in:
@ -4747,9 +4747,7 @@ mysql_execute_command(THD *thd)
|
||||
#ifdef WITH_WSREP
|
||||
if (wsrep && !first_table->view)
|
||||
{
|
||||
const handlerton *hton = first_table->table->file->partition_ht() ?
|
||||
first_table->table->file->partition_ht() : first_table->table->file->ht;
|
||||
bool is_innodb= (hton->db_type == DB_TYPE_INNODB);
|
||||
bool is_innodb= first_table->table->file->partition_ht()->db_type == DB_TYPE_INNODB;
|
||||
|
||||
// For consistency check inserted table needs to be InnoDB
|
||||
if (!is_innodb && thd->wsrep_consistency_check != NO_CONSISTENCY_CHECK)
|
||||
|
Reference in New Issue
Block a user