Skip to content
Permalink
Browse files
MDEV-18878: Correct a condition
Initialize node->trx_id before checking if a table can be skipped.
  • Loading branch information
dr-m committed Mar 11, 2019
1 parent 2197528 commit 28e713d
Showing 1 changed file with 6 additions and 2 deletions.
@@ -954,15 +954,19 @@ 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;
}

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 */

0 comments on commit 28e713d

Please sign in to comment.