MDEV-25730: maria.repair test fails with valgrind
cherry-pick commit: 1fff2398ef3dda1a7e8404f18e4e165823bd4e0a MDEV-22530 post push fixes from 10.6. Followup. If the KILL happens - report it as a failure, don't eat it up silently. Note that this has to be done after `table_name` is populated, so that the error message could show it.
This commit is contained in:
parent
fe7e44d8ad
commit
d8fa71a089
@ -499,8 +499,6 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
|||||||
DBUG_PRINT("admin", ("table: '%s'.'%s'", table->db, table->table_name));
|
DBUG_PRINT("admin", ("table: '%s'.'%s'", table->db, table->table_name));
|
||||||
DEBUG_SYNC(thd, "admin_command_kill_before_modify");
|
DEBUG_SYNC(thd, "admin_command_kill_before_modify");
|
||||||
|
|
||||||
if (thd->is_killed())
|
|
||||||
break;
|
|
||||||
strxmov(table_name, db, ".", table->table_name, NullS);
|
strxmov(table_name, db, ".", table->table_name, NullS);
|
||||||
thd->open_options|= extra_open_options;
|
thd->open_options|= extra_open_options;
|
||||||
table->lock_type= lock_type;
|
table->lock_type= lock_type;
|
||||||
@ -515,6 +513,13 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
|||||||
: lock_type >= TL_WRITE_ALLOW_WRITE
|
: lock_type >= TL_WRITE_ALLOW_WRITE
|
||||||
? MDL_SHARED_WRITE : MDL_SHARED_READ);
|
? MDL_SHARED_WRITE : MDL_SHARED_READ);
|
||||||
|
|
||||||
|
if (thd->check_killed())
|
||||||
|
{
|
||||||
|
fatal_error= true;
|
||||||
|
result_code= HA_ADMIN_FAILED;
|
||||||
|
goto send_result;
|
||||||
|
}
|
||||||
|
|
||||||
/* open only one table from local list of command */
|
/* open only one table from local list of command */
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user