Skip to content
Permalink
Browse files

Merge pull request #1854 from anthonyrossbach/patch-1

Fixes for dumps of large databases
  • Loading branch information...
serghey-rodin committed May 14, 2019
2 parents 7726ed8 + 8f2fdfb commit e087a04f003e79c011b4f5dbc0bddbc83ec8358e
Showing with 2 additions and 2 deletions.
  1. +2 −2 func/db.sh
@@ -55,14 +55,14 @@ mysql_query() {

mysql_dump() {
err="/tmp/e.mysql"
mysqldump --defaults-file=$mycnf --single-transaction -r $1 $2 2> $err
mysqldump --defaults-file=$mycnf --single-transaction --max_allowed_packet=100M -r $1 $2 2> $err
if [ '0' -ne "$?" ]; then
rm -rf $tmpdir
if [ "$notify" != 'no' ]; then
echo -e "Can't dump database $database\n$(cat $err)" |\
$SENDMAIL -s "$subj" $email
fi
echo "Error: dump $database failed"
echo "Error: dump $database failed\n$(cat $err)"
log_event "$E_DB" "$ARGUMENTS"
exit $E_DB
fi

0 comments on commit e087a04

Please sign in to comment.
You can’t perform that action at this time.