diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2022-11-29 15:10:51 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2022-12-01 21:56:16 +0400 |
commit | 12f52c3b970ab8d79d374ff064f395d8feef1247 (patch) | |
tree | 1c601cdf11138f778b2e1a322899134d8fc02467 | |
parent | d186cb180e424fb4e166959145b3bccb5e7f5164 (diff) | |
download | mariadb-git-bb-10.11-partexp-hf.tar.gz |
m_mysql removed.bb-10.11-partexp-hf
-rw-r--r-- | sql/ha_partition.cc | 16 | ||||
-rw-r--r-- | sql/ha_partition.h | 6 |
2 files changed, 2 insertions, 20 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 19e25af4cb8..8a25100abe6 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -396,7 +396,6 @@ void ha_partition::init_handler_variables() m_index_scan_type= partition_no_index_scan; m_start_key.key= NULL; m_start_key.length= 0; - m_myisam= FALSE; m_innodb= FALSE; m_extra_cache= FALSE; m_extra_cache_size= 0; @@ -3028,13 +3027,8 @@ bool ha_partition::create_handlers(MEM_ROOT *mem_root) } /* For the moment we only support partition over the same table engine */ hton0= plugin_data(m_engine_array[0], handlerton*); - if (hton0 == myisam_hton) - { - DBUG_PRINT("info", ("MyISAM")); - m_myisam= TRUE; - } /* INNODB may not be compiled in... */ - else if (ha_legacy_type(hton0) == DB_TYPE_INNODB) + if (ha_legacy_type(hton0) == DB_TYPE_INNODB) { DBUG_PRINT("info", ("InnoDB")); m_innodb= TRUE; @@ -3099,11 +3093,6 @@ bool ha_partition::new_handlers_from_part_info(MEM_ROOT *mem_root) (uint) ha_legacy_type(part_elem->engine_type))); } } while (++i < m_part_info->num_parts); - if (part_elem->engine_type == myisam_hton) - { - DBUG_PRINT("info", ("MyISAM")); - m_myisam= TRUE; - } DBUG_RETURN(FALSE); error: DBUG_RETURN(TRUE); @@ -9250,8 +9239,7 @@ int ha_partition::extra(enum ha_extra_function operation) case HA_EXTRA_NO_IGNORE_DUP_KEY: case HA_EXTRA_KEYREAD_PRESERVE_FIELDS: { - if (!m_myisam) - DBUG_RETURN(loop_partitions(extra_cb, &operation)); + DBUG_RETURN(loop_partitions(extra_cb, &operation)); } break; diff --git a/sql/ha_partition.h b/sql/ha_partition.h index 45a835f734a..03c574c42dd 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -388,12 +388,6 @@ private: MEM_ROOT *m_clone_mem_root; /* - We keep track if all underlying handlers are MyISAM since MyISAM has a - great number of extra flags not needed by other handlers. - */ - bool m_myisam; // Are all underlying handlers - // MyISAM - /* We keep track of InnoDB handlers below since it requires proper setting of query_id in fields at index_init and index_read calls. */ |