MDEV-17236 mariabackup incorrectly tries to open ibdata1

		if custom undo tablespace is defined

- In case of multiple undo tablespace, mariabackup have to open system
tablespace to find the list of undo tablespace present in TRX_SYS page.
For opening system tablespace, mariabackup should fetch the file name
from already initialized system tablespace object.
parent 654b5879
......@@ -3255,7 +3255,7 @@ static dberr_t xb_assign_undo_space_start()
}
snprintf(name + dirnamelen, (sizeof name) - dirnamelen,
"%s", "ibdata1");
"%s", srv_sys_space.first_datafile()->name());
file = os_file_create(0, name, OS_FILE_OPEN,
OS_FILE_NORMAL, OS_DATA_FILE, true, &ret);
......
--debug=d,innodb_undo_upgrade
--innodb_data_file_path=ib_mysql:10M
--innodb_undo_tablespaces=2
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