alter table mysql.ndb_binlog_index drop primary key; use test; create table t1 (a int) engine=ndb; create procedure ins (rows int) begin set @x = 0; repeat insert into t1 values (1); set @x = @x + 1; until @x = rows end repeat; end% call ins(10000); Duplicate epochs according to mysql.ndb_binlog_index select epoch >> 32 as gci, (epoch << 32) >> 32 as ugci, sum(1) as count from mysql.ndb_binlog_index group by epoch having count > 1; gci ugci count Duplicate epochs according to MySQLD Binlog entries select epoch >> 32 as gci, (epoch << 32) >> 32 as ugci, sum(1) as count from epochs_in_binlog group by epoch having count > 1; gci ugci count reset master; alter table mysql.ndb_binlog_index add primary key (epoch, orig_server_id, orig_epoch); drop procedure ins; drop table t1;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ndb_binlog_basic.result | File | 1.46 KB | 0644 |
|
ndb_binlog_ddl_multi.result | File | 6.95 KB | 0644 |
|
ndb_binlog_discover.result | File | 786 B | 0644 |
|
ndb_binlog_format.result | File | 1.79 KB | 0644 |
|
ndb_binlog_ignore_db.result | File | 1.77 KB | 0644 |
|
ndb_binlog_log_apply_status.result | File | 1.46 KB | 0644 |
|
ndb_binlog_log_bin.result | File | 3.26 KB | 0644 |
|
ndb_binlog_multi.result | File | 3.91 KB | 0644 |
|
ndb_binlog_restore.result | File | 3.08 KB | 0644 |
|
ndb_binlog_unique_epoch.result | File | 791 B | 0644 |
|
ndb_binlog_variants.result | File | 2.79 KB | 0644 |
|