mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
15071226a0
System tablespace can be specified with absolute path, if innodb_data_home_dir is empty. This was not handled well by mariabackup 1. In backup phase, empty innodb_data_home_dir variable from server was not recognized. full paths were stored in backup-my.ini, even if it stored all files locally. thus prepare phase would not find the system tablespace files. 2. In copy-back phase, copy would not be done to the absolute destination path, as path would be stripped with trim_dotslash This patch fixes the above defects.
10 lines
174 B
Text
10 lines
174 B
Text
CREATE TABLE t(i INT) ENGINE INNODB;
|
|
INSERT INTO t VALUES(1);
|
|
# xtrabackup backup
|
|
# remove datadir
|
|
# xtrabackup copy back
|
|
# restart server
|
|
SELECT * from t;
|
|
i
|
|
1
|
|
DROP TABLE t;
|