Commit 7326dcbf authored by lenz@mysql.com's avatar lenz@mysql.com

- Fixed mysqlhotcopy to actually abort if copying the tables failed.

   (BUG#812)
parent f8a767b5
...@@ -660,9 +660,9 @@ sub safe_system ...@@ -660,9 +660,9 @@ sub safe_system
print "Executing '@cmd'\n" if $opt{debug}; print "Executing '@cmd'\n" if $opt{debug};
my $cp_status = system "@cmd > /dev/null"; my $cp_status = system "@cmd > /dev/null";
if ($cp_status != 0) { 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 ## try something else
`@cmd` && die "Error: @cmd failed ($cp_status) while copying files.\n"; `@cmd` || die "Error: @cmd failed ($?) while copying files.\n";
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment