mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-33285 - Assertion `m_table' failed in ha_perfschema::rnd_end on CHECKSUM TABLE
CHECKSUM TABLE causes variety of crashes when killed. This bug it not specific to PERFORMANCE_SCHEMA. Removed duplicate handler::ha_rnd_end() call.
This commit is contained in:
committed by
Sergei Golubchik
parent
aef6f35989
commit
b730abda09
@@ -12237,14 +12237,15 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables,
|
||||
protocol->store_null();
|
||||
else
|
||||
{
|
||||
DEBUG_SYNC(thd, "mysql_checksum_table_before_calculate_checksum");
|
||||
int error= t->file->calculate_checksum();
|
||||
DEBUG_SYNC(thd, "mysql_checksum_table_after_calculate_checksum");
|
||||
if (thd->killed)
|
||||
{
|
||||
/*
|
||||
we've been killed; let handler clean up, and remove the
|
||||
partial current row from the recordset (embedded lib)
|
||||
*/
|
||||
t->file->ha_rnd_end();
|
||||
thd->protocol->remove_last_row();
|
||||
goto err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user