1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
--source include/not_valgrind.inc
--source include/have_innodb_default_undo_tablespaces.inc
--echo #
--echo # WL7943 Implement INFORMATION_SCHEMA.FILES
--echo #
--echo # Mysqld is initialized in this test with with:
--echo # --innodb_rollback_segments=1
--echo # --bootstrap --innodb_page_size=32k
--echo # 2 implicit and 6 explicit undo tablespaces
CREATE UNDO TABLESPACE undo_003 ADD DATAFILE 'undo_003.ibu';
CREATE UNDO TABLESPACE undo_004 ADD DATAFILE 'undo_004.ibu';
CREATE UNDO TABLESPACE undo_005 ADD DATAFILE 'undo_005.ibu';
CREATE UNDO TABLESPACE undo_006 ADD DATAFILE 'undo_006.ibu';
CREATE UNDO TABLESPACE undo_007 ADD DATAFILE 'undo_007.ibu';
CREATE UNDO TABLESPACE undo_008 ADD DATAFILE 'undo_008.ibu';
--source suite/innodb_undo/include/i_s_files.inc
--echo # Set all explicit undo tablespaces to inacitve.
ALTER UNDO TABLESPACE undo_003 SET INACTIVE;
ALTER UNDO TABLESPACE undo_004 SET INACTIVE;
ALTER UNDO TABLESPACE undo_005 SET INACTIVE;
ALTER UNDO TABLESPACE undo_006 SET INACTIVE;
ALTER UNDO TABLESPACE undo_007 SET INACTIVE;
ALTER UNDO TABLESPACE undo_008 SET INACTIVE;
--echo # Wait for all explicit undo tablespaces to become empty.
let $inactive_undo_space = undo_003;
source include/wait_until_undo_space_is_empty.inc;
let $inactive_undo_space = undo_004;
source include/wait_until_undo_space_is_empty.inc;
let $inactive_undo_space = undo_005;
source include/wait_until_undo_space_is_empty.inc;
let $inactive_undo_space = undo_006;
source include/wait_until_undo_space_is_empty.inc;
let $inactive_undo_space = undo_007;
source include/wait_until_undo_space_is_empty.inc;
let $inactive_undo_space = undo_008;
source include/wait_until_undo_space_is_empty.inc;
--echo # Drop all explicit undo tablespaces.
DROP UNDO TABLESPACE undo_003;
DROP UNDO TABLESPACE undo_004;
DROP UNDO TABLESPACE undo_005;
DROP UNDO TABLESPACE undo_006;
DROP UNDO TABLESPACE undo_007;
DROP UNDO TABLESPACE undo_008;
|