mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 06:00:14 +00:00
Add failing tests for bug 918056.
This commit is contained in:
@@ -9,7 +9,7 @@ BEGIN {
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings FATAL => 'all';
|
use warnings FATAL => 'all';
|
||||||
use English qw(-no_match_vars);
|
use English qw(-no_match_vars);
|
||||||
use Test::More tests => 1;
|
use Test::More;
|
||||||
|
|
||||||
use PerconaTest;
|
use PerconaTest;
|
||||||
use Sandbox;
|
use Sandbox;
|
||||||
@@ -57,7 +57,28 @@ test_diff_where(
|
|||||||
where => "((`id` >= '7')) AND ((`id` <= '9'))",
|
where => "((`id` >= '7')) AND ((`id` <= '9'))",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
test_diff_where(
|
||||||
|
name => "Lower oob chunk (bug 918056)",
|
||||||
|
file => "$sample/bug-918056-ddl.sql",
|
||||||
|
diff => {
|
||||||
|
chunk => '3',
|
||||||
|
chunk_index => 'PRIMARY',
|
||||||
|
cnt_diff => '49',
|
||||||
|
crc_diff => '0',
|
||||||
|
db => 'test',
|
||||||
|
lower_boundary => undef,
|
||||||
|
master_cnt => '0',
|
||||||
|
master_crc => '0',
|
||||||
|
table => 'test.history',
|
||||||
|
tbl => 'history',
|
||||||
|
this_cnt => '49',
|
||||||
|
this_crc => '0',
|
||||||
|
upper_boundary => '21,21,1045'
|
||||||
|
},
|
||||||
|
where => "((`uid` < '21') OR (`uid` = '21' AND `uid` <= '1045'))",
|
||||||
|
);
|
||||||
|
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
# Done.
|
# Done.
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
exit;
|
done_testing;
|
||||||
|
68
t/pt-table-sync/replicate.t
Normal file
68
t/pt-table-sync/replicate.t
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
|
BEGIN {
|
||||||
|
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
|
||||||
|
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
|
||||||
|
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
|
||||||
|
};
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings FATAL => 'all';
|
||||||
|
use English qw(-no_match_vars);
|
||||||
|
use Test::More;
|
||||||
|
|
||||||
|
use PerconaTest;
|
||||||
|
use Sandbox;
|
||||||
|
require "$trunk/bin/pt-table-sync";
|
||||||
|
|
||||||
|
my $dp = new DSNParser(opts=>$dsn_opts);
|
||||||
|
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
|
||||||
|
my $master_dbh = $sb->get_dbh_for('master');
|
||||||
|
my $slave1_dbh = $sb->get_dbh_for('slave1');
|
||||||
|
|
||||||
|
if ( !$master_dbh ) {
|
||||||
|
plan skip_all => 'Cannot connect to sandbox master';
|
||||||
|
}
|
||||||
|
elsif ( !$slave1_dbh ) {
|
||||||
|
plan skip_all => 'Cannot connect to sandbox slave1';
|
||||||
|
}
|
||||||
|
|
||||||
|
my $master_dsn = $sb->dsn_for('master');
|
||||||
|
my $slave1_dsn = $sb->dsn_for('slave1');
|
||||||
|
|
||||||
|
my $output;
|
||||||
|
my $sample = "t/pt-table-sync/samples";
|
||||||
|
|
||||||
|
# #############################################################################
|
||||||
|
# --replicate tests
|
||||||
|
# #############################################################################
|
||||||
|
|
||||||
|
# #############################################################################
|
||||||
|
# Bug 918056: pt-table-sync false-positive error "Cannot nibble table because
|
||||||
|
# MySQL chose no index instead of the PRIMARY index"
|
||||||
|
# https://bugs.launchpad.net/percona-toolkit/+bug/918056
|
||||||
|
# #############################################################################
|
||||||
|
|
||||||
|
$sb->create_dbs($master_dbh, [qw(bug918056)]);
|
||||||
|
$sb->load_file('master', "$sample/bug-918056-master.sql", "bug918056");
|
||||||
|
$sb->load_file('slave1', "$sample/bug-918056-slave.sql", "bug918056");
|
||||||
|
|
||||||
|
ok(
|
||||||
|
no_diff(
|
||||||
|
sub {
|
||||||
|
pt_table_sync::main($master_dsn, qw(--replicate percona.checksums),
|
||||||
|
qw(--print))
|
||||||
|
},
|
||||||
|
"$sample/bug-918056-print.txt",
|
||||||
|
stderr => 1,
|
||||||
|
),
|
||||||
|
"Sync lower oob (bug 918056)"
|
||||||
|
);
|
||||||
|
|
||||||
|
# #############################################################################
|
||||||
|
# Done.
|
||||||
|
# #############################################################################
|
||||||
|
$sb->wipe_clean($master_dbh);
|
||||||
|
$sb->wipe_clean($slave1_dbh);
|
||||||
|
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||||
|
done_testing;
|
6
t/pt-table-sync/samples/bug-918056-ddl.sql
Normal file
6
t/pt-table-sync/samples/bug-918056-ddl.sql
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
CREATE TABLE `history` (
|
||||||
|
`uid` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`nid` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`timestamp` int(11) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`uid`,`nid`)
|
||||||
|
) ENGINE=InnoDB;
|
59
t/pt-table-sync/samples/bug-918056-master.sql
Normal file
59
t/pt-table-sync/samples/bug-918056-master.sql
Normal file
File diff suppressed because one or more lines are too long
49
t/pt-table-sync/samples/bug-918056-print.txt
Normal file
49
t/pt-table-sync/samples/bug-918056-print.txt
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='14' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='1591' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='11501' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='12648' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='12652' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='1045' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='1046' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='11556' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12166' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12598' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12599' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12601' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12602' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12603' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12606' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12607' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12609' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12616' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12617' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12618' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12621' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12623' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12624' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12626' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12627' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12628' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12632' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12651' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12652' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12672' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12674' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12675' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12677' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12678' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12680' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12682' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12694' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12733' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12734' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12738' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='12' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='14' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='16' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='191' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='307' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='339' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='340' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='901' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
||||||
|
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='1039' LIMIT 1 /*percona-toolkit src_db:bug918056 src_tbl:history src_dsn:P=12345,h=127.0.0.1,p=...,u=msandbox dst_db:bug918056 dst_tbl:history dst_dsn:P=12346,h=127.1,p=...,u=msandbox lock:1 transaction:1 changing_src:1 replicate:0 bidirectional:0 pid:7701 user:daniel host:beatrice.local*/;
|
39
t/pt-table-sync/samples/bug-918056-slave.sql
Normal file
39
t/pt-table-sync/samples/bug-918056-slave.sql
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user