mirror of
https://github.com/MariaDB/server.git
synced 2025-10-28 17:15:19 +03:00
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.
11 lines
174 B
Plaintext
11 lines
174 B
Plaintext
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;
|