mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 22:19:44 +00:00
Only iterate diffs if there are some.
This commit is contained in:
@@ -7702,7 +7702,9 @@ sub main {
|
|||||||
$slave->name());
|
$slave->name());
|
||||||
# Save unique chunks that differ.
|
# Save unique chunks that differ.
|
||||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1030031
|
# https://bugs.launchpad.net/percona-toolkit/+bug/1030031
|
||||||
map { $diff_chunks{ $_->{chunk} }++ } @$diffs;
|
if ( scalar @$diffs ) {
|
||||||
|
map { $diff_chunks{ $_->{chunk} }++ } @$diffs;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
if ($EVAL_ERROR) {
|
if ($EVAL_ERROR) {
|
||||||
if ( $o->get('quiet') < 2 ) {
|
if ( $o->get('quiet') < 2 ) {
|
||||||
|
Reference in New Issue
Block a user