diff options
Diffstat (limited to 'sql/sql_reload.cc')
-rw-r--r-- | sql/sql_reload.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_reload.cc b/sql/sql_reload.cc index 63809fae7ee..ef699962777 100644 --- a/sql/sql_reload.cc +++ b/sql/sql_reload.cc @@ -313,6 +313,16 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options, } } +#ifdef WITH_WSREP + if (thd->wsrep_applier) + { + /* + In case of applier thread, do not wait for table share(s) to be + removed from table definition cache. + */ + options|= REFRESH_FAST; + } +#endif if (close_cached_tables(thd, tables, ((options & REFRESH_FAST) ? FALSE : TRUE), (thd ? thd->variables.lock_wait_timeout : |