mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +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;
|
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;
|
@chunks = sort { $a <=> $b } @chunks;
|
||||||
if ( $chunks[0] < $max_chunk ) {
|
if ( $chunks[0] < $max_chunk ) {
|
||||||
if ( $check_pr ) {
|
if ( $check_pr ) {
|
||||||
|
Reference in New Issue
Block a user