Skip to content

Commit 7e4bbd3

Browse files
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.
1 parent 654b587 commit 7e4bbd3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3255,7 +3255,7 @@ static dberr_t xb_assign_undo_space_start()
32553255
}
32563256

32573257
snprintf(name + dirnamelen, (sizeof name) - dirnamelen,
3258-
"%s", "ibdata1");
3258+
"%s", srv_sys_space.first_datafile()->name());
32593259

32603260
file = os_file_create(0, name, OS_FILE_OPEN,
32613261
OS_FILE_NORMAL, OS_DATA_FILE, true, &ret);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--debug=d,innodb_undo_upgrade
2+
--innodb_data_file_path=ib_mysql:10M
23
--innodb_undo_tablespaces=2

0 commit comments

Comments
 (0)