MDEV-22770 trx_undo_report_rename() fails to release page latches

commit f74023b955 (MDEV-15090)
inadvertently removed a mtr_t::commit() call from
trx_undo_report_rename(), causing an InnoDB hang if
we failed to log a RENAME operation.

It is unclear whether this condition is possible in practice.
The test case involved SET GLOBAL innodb_trx_rseg_n_slots_debug=1
and a failed CREATE TABLE...SELECT, whose error handling would
internally invoke RENAME in InnoDB.
This commit is contained in:
Marko Mäkelä 2020-06-02 08:18:17 +03:00
parent fd2b46d879
commit 804761a844

View file

@ -1934,10 +1934,9 @@ dberr_t trx_undo_report_rename(trx_t* trx, const dict_table_t* table)
}
}
}
mtr.commit();
}
mtr.commit();
return err;
}