From 291c71dc8a0fc95aef4235eefb24586f907cf5fb Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Fri, 23 Oct 2026 18:13:50 +0300 Subject: [PATCH] Remove JOIN_TAB::related_tables The member was added by: commit 1d82e5daf71 Author: Monty Date: Mon Jun 13 2022 Move join->emb_smj_nest setting to choose_plan() and has never been used, neither read nor assigned. Co-Authored-By: Claude Sonnet 5.5 --- sql/sql_select.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sql/sql_select.h b/sql/sql_select.h index 6542bb02392..805026967a0 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -623,11 +623,6 @@ typedef struct st_join_table { It is only used to prune searches in best_extension_by_limited_search() */ table_map key_dependent; - /* - Tables that have expression in their attached condition clause that depends - on this table. - */ - table_map related_tables; /* Bitmap of TAB_INFO_* bits that encodes special line for EXPLAIN 'Extra'