1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-28526 Spider: remove conn_kind member variables

The conn_kind, which stands for "connection kind", is no longer useful
because the HandlerSocket support is deleted and Spider now has only
one connection kind, SPIDER_CONN_KIND_MYSQL. Remove conn_kind and
related code.

Signed-off-by: Yuchen Pei <yuchen.pei@mariadb.com>
Reviewed-by: Nayuta Yanagisawa <nayuta.yanagisawa@mariadb.com>
This commit is contained in:
Yuchen Pei
2025-01-17 18:15:04 +11:00
parent 068d061454
commit 7358cbe627
15 changed files with 65 additions and 144 deletions

View File

@@ -3193,7 +3193,7 @@ void spider_db_mbase::reset_opened_handler()
{
tmp_spider = (*tmp_link_for_hash)->spider;
tmp_link_idx = (*tmp_link_for_hash)->link_idx;
tmp_spider->clear_handler_opened(tmp_link_idx, conn->conn_kind);
tmp_spider->clear_handler_opened(tmp_link_idx);
}
DBUG_VOID_RETURN;
}
@@ -7377,7 +7377,7 @@ int spider_mbase_share::discover_table_structure(
int *need_mon= &need_mon_deref;
if (!(conn = spider_get_conn(
spider_share, 0, spider_share->conn_keys[roop_count], trx, NULL, FALSE,
FALSE, SPIDER_CONN_KIND_MYSQL, &error_num))
FALSE, &error_num))
) {
DBUG_RETURN(error_num);
}