Fix diff_where() for lower oob chunks. Add PT_TEST_NO_TRACE to remove /* trace messages */ from queries for testing, and remove trace messages from the sample output.

This commit is contained in:
Daniel Nichter
2013-01-23 10:15:08 -07:00
parent dbf2ac477e
commit 7f7eaa2b10
4 changed files with 75 additions and 59 deletions

View File

@@ -10582,6 +10582,7 @@ sub sync_a_table {
trim => $o->get('trim'),
wait => $o->get('wait'),
function => $o->get('function'),
trace => !$ENV{PT_TEST_NO_TRACE},
);
if ( sum(@status{@ChangeHandler::ACTIONS}) ) {
@@ -11281,19 +11282,30 @@ sub diff_where {
PTDEBUG && _d('Ascend params:', Dumper($asc));
}
my $lb_sql = $asc->{boundaries}->{'>='};
foreach my $val ( $q->deserialize_list($diff->{lower_boundary}) ) {
my $quoted_val = $q->quote_val($val);
$lb_sql =~ s/\?/$quoted_val/;
my ($lb_sql, $ub_sql);
if ( defined $diff->{lower_boundary} ) {
$lb_sql = $asc->{boundaries}->{'>='};
foreach my $val ( $q->deserialize_list($diff->{lower_boundary}) ) {
my $quoted_val = $q->quote_val($val);
$lb_sql =~ s/\?/$quoted_val/;
}
}
my $ub_sql = $asc->{boundaries}->{'<='};
foreach my $val ( $q->deserialize_list($diff->{upper_boundary}) ) {
my $quoted_val = $q->quote_val($val);
$ub_sql =~ s/\?/$quoted_val/;
if ( defined $diff->{upper_boundary} ) {
$ub_sql = $asc->{boundaries}->{'<='};
foreach my $val ( $q->deserialize_list($diff->{upper_boundary}) ) {
my $quoted_val = $q->quote_val($val);
$ub_sql =~ s/\?/$quoted_val/;
}
}
return "$lb_sql AND $ub_sql";
die "Invalid checksum diff: " . Dumper($diff)
unless $lb_sql || $ub_sql;
return $lb_sql && $ub_sql ? "$lb_sql AND $ub_sql"
: $lb_sql ? $lb_sql
: $ub_sql;
}
}

View File

@@ -75,7 +75,7 @@ test_diff_where(
this_crc => '0',
upper_boundary => '21,21,1045'
},
where => "((`uid` < '21') OR (`uid` = '21' AND `uid` <= '1045'))",
where => "((`uid` < '21') OR (`uid` = '21' AND `nid` <= '1045'))",
);
# #############################################################################

View File

@@ -4,6 +4,10 @@ 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";
# Don't add /* trace */ messages to --print queries becuase they
# contain non-determinstic info like user, etc.
$ENV{PT_TEST_NO_TRACE} = 1;
};
use strict;

View File

@@ -1,49 +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*/;
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='14' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='1591' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='11501' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='12648' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='1' AND `nid`='12652' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='1045' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='1046' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='11556' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12166' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12598' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12599' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12601' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12602' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12603' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12606' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12607' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12609' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12616' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12617' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12618' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12621' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12623' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12624' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12626' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12627' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12628' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12632' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12651' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12652' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12672' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12674' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12675' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12677' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12678' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12680' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12682' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12694' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12733' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12734' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='20' AND `nid`='12738' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='12' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='14' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='16' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='191' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='307' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='339' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='340' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='901' LIMIT 1;
DELETE FROM `bug918056`.`history` WHERE `uid`='21' AND `nid`='1039' LIMIT 1;