1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Changed mysql.apply_status, mysql.binlog_index, and mysql.schema to mysql.ndb_apply_status, mysql.ndb_binlog_index, and mysql.ndb_schema

This commit is contained in:
mskold/marty@mysql.com/linux.site
2006-12-01 15:49:07 +01:00
parent 4b7e0b5fd9
commit cde79e4f79
34 changed files with 247 additions and 245 deletions

View File

@ -12,14 +12,14 @@ use test;
#
# basic insert, update, delete test, alter, rename, drop
# check that binlog_index gets the right info
# check that ndb_binlog_index gets the right info
#
create table t1 (a int primary key) engine=ndb;
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
save_master_pos;
--replace_column 1 #
select @max_epoch:=max(epoch)-1 from mysql.binlog_index;
select @max_epoch:=max(epoch)-1 from mysql.ndb_binlog_index;
delete from t1;
alter table t1 add (b int);
@ -38,18 +38,18 @@ drop table t2;
# (save_master_pos waits for last gcp to complete, ensuring that we have
# the expected data in the binlog)
save_master_pos;
select inserts from mysql.binlog_index where epoch > @max_epoch and inserts > 5;
select deletes from mysql.binlog_index where epoch > @max_epoch and deletes > 5;
select inserts from mysql.ndb_binlog_index where epoch > @max_epoch and inserts > 5;
select deletes from mysql.ndb_binlog_index where epoch > @max_epoch and deletes > 5;
select inserts,updates,deletes from
mysql.binlog_index where epoch > @max_epoch and updates > 0;
mysql.ndb_binlog_index where epoch > @max_epoch and updates > 0;
#
# check that purge clears the binlog_index
# check that purge clears the ndb_binlog_index
#
flush logs;
--sleep 1
purge master logs before now();
select count(*) from mysql.binlog_index;
select count(*) from mysql.ndb_binlog_index;
#
# several tables in different databases
@ -64,9 +64,9 @@ use test;
insert into mysqltest.t1 values (2,1),(2,2);
save_master_pos;
--replace_column 1 #
select @max_epoch:=max(epoch)-1 from mysql.binlog_index;
select @max_epoch:=max(epoch)-1 from mysql.ndb_binlog_index;
drop table t1;
drop database mysqltest;
select inserts,updates,deletes from
mysql.binlog_index where epoch > @max_epoch and inserts > 0;
mysql.ndb_binlog_index where epoch > @max_epoch and inserts > 0;