mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Fix for 1052475: Crash in ptc::wait_for_last_checksum() if the slaves had errors
This commit is contained in:
@@ -10139,6 +10139,12 @@ sub wait_for_last_checksum {
|
||||
next;
|
||||
}
|
||||
}
|
||||
# If we have no chunks, which can happen if the slaves
|
||||
# were skipped due to errors, then @chunks will be empty
|
||||
# and nothing of the following applies. In fact, it
|
||||
# leads to an uninit warning because of $chunks[0]; See
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1052475
|
||||
next unless @chunks;
|
||||
@chunks = sort { $a <=> $b } @chunks;
|
||||
if ( $chunks[0] < $max_chunk ) {
|
||||
if ( $check_pr ) {
|
||||
|
Reference in New Issue
Block a user