diff options
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 35c799d4a86..1f56abe571b 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -257,7 +257,9 @@ void udf_init() if (unlikely(error > 0)) sql_print_error("Got unknown error: %d", my_errno); end_read_record(&read_record_info); - table->m_needs_reopen= TRUE; // Force close to free memory + + // Force close to free memory + table->mark_table_for_reopen(); end: close_mysql_tables(new_thd); |