-
-
Save ronin13/ace49de95cd87b68758d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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