diff --git a/storage/tianchi/ctc_meta_data.cc b/storage/tianchi/ctc_meta_data.cc index 7b601dec4cc3bac2ef89001ad3ee7567b1cdfced..9243d2dfe8cff790e603e59ccf77dd392abe0f98 100644 --- a/storage/tianchi/ctc_meta_data.cc +++ b/storage/tianchi/ctc_meta_data.cc @@ -623,9 +623,6 @@ static void ctc_get_set_var_item(THD* new_thd, sys_var* sysvar, Item** res MY_AT case SHOW_LONG: case SHOW_LONGLONG: case SHOW_HA_ROWS: - *res = new (new_thd->mem_root) - Item_uint(var_value.c_str(), (uint)var_value.length()); - break; case SHOW_SIGNED_INT: case SHOW_SIGNED_LONG: case SHOW_SIGNED_LONGLONG: @@ -760,4 +757,4 @@ int ctc_set_sys_var(tse_ddl_broadcast_request *broadcast_req) { my_thread_end(); return ret; -} \ No newline at end of file +} diff --git a/storage/tianchi/ha_tse.cc b/storage/tianchi/ha_tse.cc index 28f7287f520a38d850dd8e2a2adbe410023762b3..b8410bd07a2c7e225daceb32a883a1522910749f 100644 --- a/storage/tianchi/ha_tse.cc +++ b/storage/tianchi/ha_tse.cc @@ -1997,6 +1997,11 @@ static bool tse_notify_exclusive_mdl(THD *thd, const MDL_key *mdl_key, return false; } +static bool tse_notify_alter_table(THD *thd, const MDL_key *mdl_key, + ha_notification_type notification_type) { + return tse_notify_exclusive_mdl(thd, mdl_key, notification_type, nullptr); +} + static const unsigned int MAX_SAVEPOINT_NAME_LEN = 64; static const int BASE36 = 36; // 0~9 and a~z, total 36 encoded character @@ -4628,6 +4633,7 @@ static int tse_init_func(void *p) { tse_hton->close_connection = tse_close_connect; tse_hton->kill_connection = tse_kill_connection; tse_hton->notify_exclusive_mdl = tse_notify_exclusive_mdl; + tse_hton->notify_alter_table = tse_notify_alter_table; tse_hton->start_consistent_snapshot = tse_start_trx_and_assign_scn; tse_hton->partition_flags = tse_partition_flags; tse_hton->flags = HTON_SUPPORTS_FOREIGN_KEYS | HTON_CAN_RECREATE | HTON_SUPPORTS_ATOMIC_DDL;