mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
4c798b42d3
mysql-test/include/have_ndb_extra.inc: New BitKeeper file ``mysql-test/include/have_ndb_extra.inc'' mysql-test/include/not_ndb.inc: New BitKeeper file ``mysql-test/include/not_ndb.inc'' mysql-test/r/have_ndb_extra.require: New BitKeeper file ``mysql-test/r/have_ndb_extra.require'' mysql-test/r/ndb_alter_table_row.result: New BitKeeper file ``mysql-test/r/ndb_alter_table_row.result'' mysql-test/r/ndb_alter_table_stm.result: New BitKeeper file ``mysql-test/r/ndb_alter_table_stm.result'' mysql-test/r/ndb_binlog_basic.result: New BitKeeper file ``mysql-test/r/ndb_binlog_basic.result'' mysql-test/r/ndb_binlog_multi.result: New BitKeeper file ``mysql-test/r/ndb_binlog_multi.result'' mysql-test/r/ndb_multi_row.result: New BitKeeper file ``mysql-test/r/ndb_multi_row.result'' mysql-test/r/not_ndb.require: New BitKeeper file ``mysql-test/r/not_ndb.require'' mysql-test/r/rpl_ndb_bank.result: New BitKeeper file ``mysql-test/r/rpl_ndb_bank.result'' mysql-test/r/rpl_ndb_basic.result: New BitKeeper file ``mysql-test/r/rpl_ndb_basic.result'' mysql-test/r/rpl_ndb_disk.result: New BitKeeper file ``mysql-test/r/rpl_ndb_disk.result'' mysql-test/r/rpl_ndb_idempotent.result: New BitKeeper file ``mysql-test/r/rpl_ndb_idempotent.result'' mysql-test/r/rpl_ndb_load.result: New BitKeeper file ``mysql-test/r/rpl_ndb_load.result'' mysql-test/r/rpl_ndb_multi.result: New BitKeeper file ``mysql-test/r/rpl_ndb_multi.result'' mysql-test/r/rpl_ndb_sync.result: New BitKeeper file ``mysql-test/r/rpl_ndb_sync.result'' mysql-test/r/rpl_row_basic_7ndb.result: New BitKeeper file ``mysql-test/r/rpl_row_basic_7ndb.result'' mysql-test/t/ndb_alter_table_row.test: New BitKeeper file ``mysql-test/t/ndb_alter_table_row.test'' mysql-test/t/ndb_alter_table_stm.test: New BitKeeper file ``mysql-test/t/ndb_alter_table_stm.test'' mysql-test/t/ndb_binlog_basic.test: New BitKeeper file ``mysql-test/t/ndb_binlog_basic.test'' mysql-test/t/ndb_binlog_multi.test: New BitKeeper file ``mysql-test/t/ndb_binlog_multi.test'' mysql-test/t/ndb_multi_row.test: New BitKeeper file ``mysql-test/t/ndb_multi_row.test'' mysql-test/t/rpl_ndb_bank.test: New BitKeeper file ``mysql-test/t/rpl_ndb_bank.test'' mysql-test/t/rpl_ndb_basic.test: New BitKeeper file ``mysql-test/t/rpl_ndb_basic.test'' mysql-test/t/rpl_ndb_disk.test: New BitKeeper file ``mysql-test/t/rpl_ndb_disk.test'' mysql-test/t/rpl_ndb_idempotent.test: New BitKeeper file ``mysql-test/t/rpl_ndb_idempotent.test'' mysql-test/t/rpl_ndb_load.test: New BitKeeper file ``mysql-test/t/rpl_ndb_load.test'' mysql-test/t/rpl_ndb_multi.test: New BitKeeper file ``mysql-test/t/rpl_ndb_multi.test'' mysql-test/t/rpl_ndb_sync.test: New BitKeeper file ``mysql-test/t/rpl_ndb_sync.test'' mysql-test/t/rpl_row_basic_7ndb.test: New BitKeeper file ``mysql-test/t/rpl_row_basic_7ndb.test'' sql/ha_ndbcluster_binlog.cc: New BitKeeper file ``sql/ha_ndbcluster_binlog.cc'' sql/ha_ndbcluster_binlog.h: New BitKeeper file ``sql/ha_ndbcluster_binlog.h'' sql/ha_ndbcluster_tables.h: New BitKeeper file ``sql/ha_ndbcluster_tables.h'' sql/rpl_injector.cc: New BitKeeper file ``sql/rpl_injector.cc'' sql/rpl_injector.h: New BitKeeper file ``sql/rpl_injector.h'' storage/ndb/include/kernel/signaldata/DihFragCount.hpp: New BitKeeper file ``storage/ndb/include/kernel/signaldata/DihFragCount.hpp''
62 lines
1.7 KiB
Text
62 lines
1.7 KiB
Text
drop table if exists t1, t2;
|
|
drop database if exists mysqltest;
|
|
create database mysqltest;
|
|
use mysqltest;
|
|
drop database mysqltest;
|
|
use test;
|
|
create table t1 (a int primary key) engine=ndb;
|
|
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
|
select @max_epoch:=max(epoch)-1 from cluster_replication.binlog_index;
|
|
@max_epoch:=max(epoch)-1
|
|
#
|
|
delete from t1;
|
|
alter table t1 add (b int);
|
|
insert into t1 values (3,3),(4,4);
|
|
alter table t1 rename t2;
|
|
begin;
|
|
insert into t2 values (1,1),(2,2);
|
|
update t2 set b=1 where a=3;
|
|
delete from t2 where a=4;
|
|
commit;
|
|
drop table t2;
|
|
select inserts from cluster_replication.binlog_index where epoch > @max_epoch and inserts > 5;
|
|
inserts
|
|
10
|
|
select deletes from cluster_replication.binlog_index where epoch > @max_epoch and deletes > 5;
|
|
deletes
|
|
10
|
|
select inserts,updates,deletes from
|
|
cluster_replication.binlog_index where epoch > @max_epoch and updates > 0;
|
|
inserts updates deletes
|
|
2 1 1
|
|
select schemaops from
|
|
cluster_replication.binlog_index where epoch > @max_epoch and schemaops > 0;
|
|
schemaops
|
|
1
|
|
1
|
|
1
|
|
flush logs;
|
|
purge master logs before now();
|
|
select count(*) from cluster_replication.binlog_index;
|
|
count(*)
|
|
0
|
|
create table t1 (a int primary key, b int) engine=ndb;
|
|
create database mysqltest;
|
|
use mysqltest;
|
|
create table t1 (c int, d int primary key) engine=ndb;
|
|
use test;
|
|
insert into mysqltest.t1 values (2,1),(2,2);
|
|
select @max_epoch:=max(epoch)-1 from cluster_replication.binlog_index;
|
|
@max_epoch:=max(epoch)-1
|
|
#
|
|
drop table t1;
|
|
drop database mysqltest;
|
|
select inserts,updates,deletes from
|
|
cluster_replication.binlog_index where epoch > @max_epoch and inserts > 0;
|
|
inserts updates deletes
|
|
2 0 0
|
|
select schemaops from
|
|
cluster_replication.binlog_index where epoch > @max_epoch and schemaops > 0;
|
|
schemaops
|
|
1
|
|
1
|