mariadb/mysql-test/suite/mariabackup/mroonga.test
Kazuhiko Shiozaki 39ef6c0dc8 MDEV-34425 mroonga files are not copied by mariabackup
Backing up with mariabackup a datadir containing
ENGINE=Mroonga tables leaves behind the corresponding
*.mrn* files. Those tables are therefore broken once
such backup is restored.

minor style/mtr changes by Daniel Black
2025-06-18 10:23:47 +10:00

23 lines
784 B
Text

if (`SELECT COUNT(*)=0 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'mroonga' AND PLUGIN_STATUS='ACTIVE'`)
{
--skip needs mroonga plugin
}
--echo #
--echo # MDEV-34425 mroonga files are not copied by mariabackup
--echo #
CREATE TABLE t(c TEXT, FULLTEXT(c)) ENGINE=Mroonga;
INSERT INTO t VALUES('Once upon a time'),('There was a wicked witch'),('Who ate everybody up');
echo # mariadb-backup backup;
let $targetdir=$MYSQL_TMP_DIR/backup;
--disable_result_log
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
exec $XTRABACKUP --prepare --target-dir=$targetdir;
-- source include/restart_and_restore.inc
--enable_result_log
SELECT * FROM t WHERE MATCH(c) AGAINST('wicked');
DROP TABLE t;
rmdir $targetdir;
--echo # End 10.11 tests