summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 5c33d03f4cd..ccff8568973 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -658,6 +658,7 @@ end:
bool close_cached_connection_tables(THD *thd, LEX_CSTRING *connection)
{
+ bool res= false;
close_cached_connection_tables_arg argument;
DBUG_ENTER("close_cached_connections");
DBUG_ASSERT(thd);
@@ -672,12 +673,12 @@ bool close_cached_connection_tables(THD *thd, LEX_CSTRING *connection)
DBUG_RETURN(true);
for (TABLE_LIST *table= argument.tables; table; table= table->next_local)
- tdc_remove_table(thd, TDC_RT_REMOVE_UNUSED,
- table->db.str,
- table->table_name.str, TRUE);
+ res|= tdc_remove_table(thd, TDC_RT_REMOVE_UNUSED,
+ table->db.str,
+ table->table_name.str, TRUE);
/* Return true if we found any open connections */
- DBUG_RETURN(MY_TEST(argument.tables));
+ DBUG_RETURN(res);
}