From bac2358c9dafd2df9d0e92293097615032ae958b Mon Sep 17 00:00:00 2001 From: Monty Date: Sun, 23 Feb 2025 16:59:04 +0200 Subject: [PATCH] Removed outdated code comment --- sql/sql_table.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sql/sql_table.cc b/sql/sql_table.cc index c20fb8d9bc4..16bb9696ac7 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -1728,18 +1728,6 @@ err: if (non_temp_tables_count) query_cache_invalidate3(thd, tables, 0); - /* - We are always logging drop of temporary tables. - The reason is to handle the following case: - - Use statement based replication - - CREATE TEMPORARY TABLE foo (logged) - - set row based replication - - DROP TEMPORARY TABLE foo (needs to be logged) - This should be fixed so that we remember if creation of the - temporary table was logged and only log it if the creation was - logged. - */ - if (non_trans_tmp_table_deleted || trans_tmp_table_deleted || non_tmp_table_deleted) {