mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
- Fixed mysqlhotcopy to actually abort if copying the tables failed.
(BUG#812)
This commit is contained in:
parent
f8a767b5d5
commit
7326dcbf23
1 changed files with 2 additions and 2 deletions
|
@ -660,9 +660,9 @@ sub safe_system
|
|||
print "Executing '@cmd'\n" if $opt{debug};
|
||||
my $cp_status = system "@cmd > /dev/null";
|
||||
if ($cp_status != 0) {
|
||||
warn "Burp ('scuse me). Trying backtick execution...\n" if $opt{debug}; #'
|
||||
warn "Executing command failed ($cp_status). Trying backtick execution...\n";
|
||||
## try something else
|
||||
`@cmd` && die "Error: @cmd failed ($cp_status) while copying files.\n";
|
||||
`@cmd` || die "Error: @cmd failed ($?) while copying files.\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue