mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.6' into 10.11
This commit is contained in:
@@ -68,6 +68,15 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
|
||||
bool result=0;
|
||||
select_errors=0; /* Write if more errors */
|
||||
int tmp_write_to_binlog= *write_to_binlog= 1;
|
||||
#ifndef DBUG_OFF
|
||||
/*
|
||||
When invoked for handling a SIGHUP by rpl_shutdown_sighup.test, we need to
|
||||
force the signal handler to wait after REFRESH_TABLES, as that will check
|
||||
for a killed server, and we need to call hostname_cache_refresh after
|
||||
server cleanup has happened to trigger MDEV-30260.
|
||||
*/
|
||||
int do_dbug_sleep= 0;
|
||||
#endif
|
||||
|
||||
DBUG_ASSERT(!thd || !thd->in_sub_stmt);
|
||||
|
||||
@@ -100,6 +109,15 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
|
||||
*/
|
||||
my_error(ER_UNKNOWN_ERROR, MYF(0));
|
||||
}
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
DBUG_EXECUTE_IF("hold_sighup_log_refresh", {
|
||||
DBUG_ASSERT(!debug_sync_set_action(
|
||||
thd, STRING_WITH_LEN("now SIGNAL in_reload_acl_and_cache "
|
||||
"WAIT_FOR refresh_logs")));
|
||||
do_dbug_sleep= 1;
|
||||
});
|
||||
#endif
|
||||
}
|
||||
opt_noacl= 0;
|
||||
|
||||
@@ -352,6 +370,11 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
|
||||
}
|
||||
my_dbopt_cleanup();
|
||||
}
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
if (do_dbug_sleep)
|
||||
my_sleep(3000000); // 3s
|
||||
#endif
|
||||
if (options & REFRESH_HOSTS)
|
||||
hostname_cache_refresh();
|
||||
if (thd && (options & REFRESH_STATUS))
|
||||
|
Reference in New Issue
Block a user