mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge branch '10.0' into 10.1
This commit is contained in:
@ -4113,7 +4113,7 @@ void Security_context::destroy()
|
||||
if (external_user)
|
||||
{
|
||||
my_free(external_user);
|
||||
user= NULL;
|
||||
external_user= NULL;
|
||||
}
|
||||
|
||||
my_free(ip);
|
||||
@ -4330,6 +4330,10 @@ extern "C" enum thd_kill_levels thd_kill_level(const MYSQL_THD thd)
|
||||
however not more often than global.progress_report_time.
|
||||
If global.progress_report_time is 0, then don't send progress reports, but
|
||||
check every second if the value has changed
|
||||
|
||||
We clear any errors that we get from sending the progress packet to
|
||||
the client as we don't want to set an error without the caller knowing
|
||||
about it.
|
||||
*/
|
||||
|
||||
static void thd_send_progress(THD *thd)
|
||||
@ -4346,8 +4350,12 @@ static void thd_send_progress(THD *thd)
|
||||
thd->progress.next_report_time= (report_time +
|
||||
seconds_to_next * 1000000000ULL);
|
||||
if (global_system_variables.progress_report_time &&
|
||||
thd->variables.progress_report_time)
|
||||
thd->variables.progress_report_time && !thd->is_error())
|
||||
{
|
||||
net_send_progress_packet(thd);
|
||||
if (thd->is_error())
|
||||
thd->clear_error();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user