Skip to content

Commit

Permalink
Mysqldump can print warnings even if it doesn't fail http://virtualmi…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed May 28, 2015
1 parent 36968f5 commit 3548188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/mysql-lib.pl
Expand Up @@ -1441,7 +1441,7 @@ sub backup_database
}
local $out = &backquote_logged("($cmd) 2>&1");
&make_authstr(); # Put back old authstr
if ($? || $out) {
if ($? || !-s $file) {
return $out;
}
return undef;
Expand Down

0 comments on commit 3548188

Please sign in to comment.