Commit 28e713dc authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-18878: Correct a condition

Initialize node->trx_id before checking if a table can be skipped.
parent 21975280
......@@ -954,8 +954,8 @@ row_purge_parse_undo_rec(
node->rec_type = type;
if ((type == TRX_UNDO_UPD_DEL_REC && !*updated_extern)
|| node->is_skipped(table_id)) {
if (type == TRX_UNDO_UPD_DEL_REC && !*updated_extern) {
skip:
node->table = NULL;
return false;
}
......@@ -963,6 +963,10 @@ row_purge_parse_undo_rec(
ptr = trx_undo_update_rec_get_sys_cols(ptr, &node->trx_id, &roll_ptr,
&info_bits);
if (node->is_skipped(table_id)) {
goto skip;
}
/* Prevent DROP TABLE etc. from running when we are doing the purge
for this row */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment