Don't crash if N is > number of index columns.

This commit is contained in:
Daniel Nichter
2012-06-11 07:55:23 -04:00
parent 28637d8c95
commit 583bc2957e
3 changed files with 41 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ if ( !$dbh ) {
plan skip_all => 'Cannot connect to sandbox master';
}
else {
plan tests => 14;
plan tests => 15;
}
# The sandbox servers run with lock_wait_timeout=3 and it's not dynamic
@@ -199,6 +199,11 @@ ok(
),
"--chunk-index index:n"
);
pt_table_checksum::main(
$master_dsn, '--max-load', '',
qw(--lock-wait-timeout 3 --chunk-size 5000 -t sakila.rental),
qw(--chunk-index rental_date:5 --explain --explain));
# #############################################################################
# Done.