Commit a98ac436 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-28752 Rollback of RENAME is broken if innodb_file_per_table=0

This was broken in 54e2e701 (MDEV-25524).
parent 1b03db11
......@@ -428,7 +428,7 @@ static bool row_undo_ins_parse_undo_rec(undo_node_t* node, bool dict_locked)
table, name,
!dict_table_t::is_temporary_name(name),
true);
} else if (table->space) {
} else if (table->space && table->space->id) {
const auto s = table->space->name();
if (len != s.size() || memcmp(name, s.data(), len)) {
table->rename_tablespace(name, true);
......
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