Skip to content

Commit a104ea0

Browse files
committed
Modified logic.
1 parent 99714c6 commit a104ea0

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

sql/sql_base.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2672,7 +2672,7 @@ Locked_tables_list::init_locked_tables(THD *thd)
26722672
&db.str, (size_t) db.length + 1,
26732673
&table_name.str, (size_t) table_name.length + 1,
26742674
&alias.str, (size_t) alias.length + 1,
2675-
NullS))
2675+
NullS) || thd->killed)
26762676
{
26772677
reset();
26782678
return TRUE;

sql/sql_parse.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5038,10 +5038,7 @@ mysql_execute_command(THD *thd, bool is_called_from_prepared_stmt)
50385038
{
50395039
if (thd->variables.query_cache_wlock_invalidate)
50405040
query_cache_invalidate_locked_for_write(thd, first_table);
5041-
if (!thd->killed)
5042-
{
5043-
my_ok(thd);
5044-
}
5041+
my_ok(thd);
50455042
}
50465043
break;
50475044
case SQLCOM_BACKUP:

0 commit comments

Comments
 (0)