Commit 84b88217 authored by Sergei Golubchik's avatar Sergei Golubchik

if discovery in recover_from_failed_open fails, don't bother to reopen

parent f597a6a6
...@@ -3993,9 +3993,12 @@ recover_from_failed_open(THD *thd) ...@@ -3993,9 +3993,12 @@ recover_from_failed_open(THD *thd)
tdc_remove_table(thd, TDC_RT_REMOVE_ALL, m_failed_table->db, tdc_remove_table(thd, TDC_RT_REMOVE_ALL, m_failed_table->db,
m_failed_table->table_name, FALSE); m_failed_table->table_name, FALSE);
get_table_share(thd, m_failed_table->db, if ((result=
!get_table_share(thd, m_failed_table->db,
m_failed_table->table_name, m_failed_table->table_name,
GTS_TABLE | GTS_FORCE_DISCOVERY | GTS_NOLOCK); GTS_TABLE | GTS_FORCE_DISCOVERY | GTS_NOLOCK)))
break;
thd->warning_info->clear_warning_info(thd->query_id); thd->warning_info->clear_warning_info(thd->query_id);
thd->clear_error(); // Clear error message thd->clear_error(); // Clear error message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment