Skip to content

Instantly share code, notes, and snippets.

@ronin13
Created May 22, 2013 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronin13/ace49de95cd87b68758d to your computer and use it in GitHub Desktop.
Save ronin13/ace49de95cd87b68758d to your computer and use it in GitHub Desktop.
--- /usr/bin/innobackupex 2013-05-18 01:05:42.000000000 +0530
+++ /tmp/innobackupex 2013-05-22 15:40:21.666465706 +0530
@@ -285,7 +285,7 @@
}
} elsif ($option_backup) {
# backup
- %mysql = mysql_connect(abort_on_error => 1, keepalives => 1);
+ %mysql = mysql_connect(abort_on_error => 1);
if ($option_ibbackup_binary eq 'autodetect') {
$option_ibbackup_binary = set_xtrabackup_version();
@@ -1404,8 +1404,10 @@
}
}
- if ($con{dbh} && $con{keepalives}) {
+ if ($con{dbh}) {
$con{dbh}->do("SET SESSION wait_timeout=2147483");
+ }
+ if ($con{dbh} && $con{keepalives}) {
start_keepalives(\%con);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment