mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-26 01:02:25 +08:00
Update KeySize in pt-duplicate-key-checker to fix bug. Update all other modules too.
This commit is contained in:
+486
-417
File diff suppressed because it is too large
Load Diff
@@ -18,20 +18,25 @@ require "$trunk/bin/pt-duplicate-key-checker";
|
|||||||
my $output;
|
my $output;
|
||||||
my $cnf = "/tmp/12345/my.sandbox.cnf";
|
my $cnf = "/tmp/12345/my.sandbox.cnf";
|
||||||
my $cmd = "$trunk/bin/pt-duplicate-key-checker -F $cnf -h 127.1";
|
my $cmd = "$trunk/bin/pt-duplicate-key-checker -F $cnf -h 127.1";
|
||||||
|
my $pid_file = "/tmp/pt-dupe-key-test.pid";
|
||||||
|
|
||||||
|
diag(`rm -f $pid_file >/dev/null`);
|
||||||
|
|
||||||
# #########################################################################
|
# #########################################################################
|
||||||
# Issue 391: Add --pid option to all scripts
|
# Issue 391: Add --pid option to all scripts
|
||||||
# #########################################################################
|
# #########################################################################
|
||||||
`touch /tmp/mk-script.pid`;
|
|
||||||
$output = `$cmd -d issue_295 --pid /tmp/mk-script.pid 2>&1`;
|
diag(`touch $pid_file`);
|
||||||
|
|
||||||
|
$output = `$cmd -d issue_295 --pid $pid_file 2>&1`;
|
||||||
like(
|
like(
|
||||||
$output,
|
$output,
|
||||||
qr{PID file /tmp/mk-script.pid already exists},
|
qr{PID file $pid_file exists},
|
||||||
'Dies if PID file already exists (issue 391)'
|
'Dies if PID file already exists (issue 391)'
|
||||||
);
|
);
|
||||||
`rm -rf /tmp/mk-script.pid`;
|
|
||||||
|
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
# Done.
|
# Done.
|
||||||
# #############################################################################
|
# #############################################################################
|
||||||
|
diag(`rm -f $pid_file >/dev/null`);
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Reference in New Issue
Block a user