mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
35 lines
964 B
Text
35 lines
964 B
Text
source include/have_file_key_management.inc;
|
|
|
|
CREATE TABLE t1(c1 INT, b VARCHAR(2400), index(b(100),c1)) ENGINE=INNODB ROW_FORMAT=compressed ENCRYPTED=YES;
|
|
|
|
DELIMITER //;
|
|
CREATE PROCEDURE innodb_insert_proc (REPEAT_COUNT INT)
|
|
BEGIN
|
|
DECLARE CURRENT_NUM INT;
|
|
SET CURRENT_NUM = 0;
|
|
WHILE CURRENT_NUM < REPEAT_COUNT DO
|
|
INSERT INTO t1 VALUES(CURRENT_NUM, concat(uuid(), CURRENT_NUM, repeat('ab', floor(rand()*100) ), uuid()));
|
|
SET CURRENT_NUM = CURRENT_NUM + 1;
|
|
END WHILE;
|
|
END//
|
|
DELIMITER ;//
|
|
COMMIT;
|
|
|
|
SET AUTOCOMMIT=0;
|
|
CALL innodb_insert_proc(50000);
|
|
COMMIT;
|
|
|
|
|
|
echo # xtrabackup backup;
|
|
--disable_result_log
|
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
|
exec $INNOBACKUPEX --defaults-file=$MYSQLTEST_VARDIR/my.cnf --no-timestamp $targetdir;
|
|
drop table t1;
|
|
exec $INNOBACKUPEX --apply-log $targetdir;
|
|
|
|
-- source include/restart_and_restore.inc
|
|
--enable_result_log
|
|
select sum(c1) from t1;
|
|
DROP TABLE t1;
|
|
drop procedure innodb_insert_proc;
|
|
rmdir $targetdir;
|