From 1f1c1d39baaafb1343ef3187d00c5188c5afe1ec Mon Sep 17 00:00:00 2001 From: lijieac Date: Thu, 5 Jun 2025 11:43:41 +0800 Subject: [PATCH] fix: the deleted table cannot be analyzed --- storage/ctc/ha_ctc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/ctc/ha_ctc.cc b/storage/ctc/ha_ctc.cc index 9817d05..94c4658 100644 --- a/storage/ctc/ha_ctc.cc +++ b/storage/ctc/ha_ctc.cc @@ -1602,8 +1602,8 @@ static int ctc_commit(handlerton *hton, THD *thd, bool commit_trx) { if (is_alter_copy && commit_trx) { tch.part_id = INVALID_PART_ID; - return ctc_analyze_table(&tch, thd->lex->query_tables->get_db_name(), - thd->lex->query_tables->table_name, 100.0); // 100.0% sample-ratio + (void)ctc_analyze_table(&tch, thd->lex->query_tables->get_db_name(), + thd->lex->query_tables->table_name, 100.0); // 100.0% sample-ratio } END_RECORD_STATS(EVENT_TYPE_COMMIT) -- Gitee