mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merging
This commit is contained in:
@ -1725,7 +1725,7 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds,
|
||||
sizeof(POSITION)*join->const_tables);
|
||||
join->best_read=1.0;
|
||||
}
|
||||
DBUG_RETURN(join->thd->killed || get_best_combination(join));
|
||||
DBUG_RETURN(join->thd->killed_errno() || get_best_combination(join));
|
||||
}
|
||||
|
||||
|
||||
@ -4978,7 +4978,7 @@ sub_select_cache(JOIN *join,JOIN_TAB *join_tab,bool end_of_records)
|
||||
}
|
||||
if (join->thd->killed) // If aborted by user
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0)); /* purecov: inspected */
|
||||
join->thd->send_kill_message();
|
||||
return -2; /* purecov: inspected */
|
||||
}
|
||||
if (join_tab->use_quick != 2 || test_if_quick_select(join_tab) <= 0)
|
||||
@ -5017,7 +5017,7 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records)
|
||||
{
|
||||
if (join->thd->killed) // Aborted by user
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0)); /* purecov: inspected */
|
||||
join->thd->send_kill_message();
|
||||
return -2; /* purecov: inspected */
|
||||
}
|
||||
join->examined_rows++;
|
||||
@ -5097,7 +5097,7 @@ flush_cached_records(JOIN *join,JOIN_TAB *join_tab,bool skipp_last)
|
||||
{
|
||||
if (join->thd->killed)
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0)); /* purecov: inspected */
|
||||
join->thd->send_kill_message();
|
||||
return -2; // Aborted by user /* purecov: inspected */
|
||||
}
|
||||
SQL_SELECT *select=join_tab->select;
|
||||
@ -5745,7 +5745,7 @@ end_write(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
|
||||
|
||||
if (join->thd->killed) // Aborted by user
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0)); /* purecov: inspected */
|
||||
join->thd->send_kill_message();
|
||||
DBUG_RETURN(-2); /* purecov: inspected */
|
||||
}
|
||||
if (!end_of_records)
|
||||
@ -5813,7 +5813,7 @@ end_update(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
|
||||
DBUG_RETURN(0);
|
||||
if (join->thd->killed) // Aborted by user
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0)); /* purecov: inspected */
|
||||
join->thd->send_kill_message();
|
||||
DBUG_RETURN(-2); /* purecov: inspected */
|
||||
}
|
||||
|
||||
@ -5883,7 +5883,7 @@ end_unique_update(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
|
||||
DBUG_RETURN(0);
|
||||
if (join->thd->killed) // Aborted by user
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0)); /* purecov: inspected */
|
||||
join->thd->send_kill_message();
|
||||
DBUG_RETURN(-2); /* purecov: inspected */
|
||||
}
|
||||
|
||||
@ -5930,7 +5930,7 @@ end_write_group(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
|
||||
|
||||
if (join->thd->killed)
|
||||
{ // Aborted by user
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0)); /* purecov: inspected */
|
||||
join->thd->send_kill_message();
|
||||
DBUG_RETURN(-2); /* purecov: inspected */
|
||||
}
|
||||
if (!join->first_record || end_of_records ||
|
||||
@ -6652,7 +6652,7 @@ static int remove_dup_with_compare(THD *thd, TABLE *table, Field **first_field,
|
||||
{
|
||||
if (thd->killed)
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0));
|
||||
thd->send_kill_message();
|
||||
error=0;
|
||||
goto err;
|
||||
}
|
||||
@ -6764,7 +6764,7 @@ static int remove_dup_with_hash_index(THD *thd, TABLE *table,
|
||||
{
|
||||
if (thd->killed)
|
||||
{
|
||||
my_error(ER_SERVER_SHUTDOWN,MYF(0));
|
||||
thd->send_kill_message();
|
||||
error=0;
|
||||
goto err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user