43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
--source include/have_ndb.inc
|
|
|
|
|
|
#
|
|
# BUG#11762867
|
|
# - show that system started with InitialLogFileGroup automatically allocated
|
|
# extra reserved memory for use by the undo buffer
|
|
select reserved, used from ndbinfo.resources
|
|
where resource_name = 'DISK_OPERATIONS'
|
|
order by node_id;
|
|
|
|
# - show logfile group initial_lg1 was created
|
|
select logfile_group_name, extra from information_schema.files
|
|
where file_type = 'UNDO LOG' and file_name is null;
|
|
|
|
|
|
# - show that the two undofiles was created
|
|
select distinct file_name, initial_size from information_schema.files
|
|
where file_type = 'UNDO LOG' and file_name is not null
|
|
order by file_name;
|
|
|
|
|
|
# - show basic usability of the auto created log file group
|
|
create tablespace ts1
|
|
add datafile 'data1.dat'
|
|
use logfile group initial_lg1
|
|
initial_size 20M
|
|
engine = ndb;
|
|
|
|
create table t1 (
|
|
a int primary key,
|
|
b varchar(256)
|
|
) tablespace ts1 storage disk, engine = ndb;
|
|
|
|
insert into t1 values
|
|
(1, "initial log file test");
|
|
|
|
drop table t1;
|
|
alter tablespace ts1 drop datafile 'data1.dat' engine=ndb;
|
|
drop tablespace ts1 engine = ndb;
|
|
drop logfile group initial_lg1 engine = ndb;
|
|
|