]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix #1034 by setting big timeout on mysql connections
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 20 Jul 2008 11:53:40 +0000 (11:53 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 20 Jul 2008 11:53:40 +0000 (11:53 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7403 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.4.1-mysql-timeout.patch [new file with mode: 0644]
bacula/technotes-2.4

diff --git a/bacula/patches/2.4.1-mysql-timeout.patch b/bacula/patches/2.4.1-mysql-timeout.patch
new file mode 100644 (file)
index 0000000..2885e46
--- /dev/null
@@ -0,0 +1,27 @@
+ This patch fixes #1034 by setting big timeout on mysql connections
+
+ Apply this patch to version 2.4.1 with:
+
+ cd <bacula-source>
+ patch -p0 < patches/2.4.1-mysql-timeout.patch
+ ./configure <your-options>
+ make
+ ...
+ make install
+
+
+Index: src/cats/mysql.c
+===================================================================
+--- src/cats/mysql.c    (rĂ©vision 7401)
++++ src/cats/mysql.c    (copie de travail)
+@@ -205,6 +205,10 @@
+    Dmsg3(100, "opendb ref=%d connected=%d db=%p\n", mdb->ref_count,
+          mdb->connected, mdb->db);
+
++   /* Set connection timeout to 8 days specialy for batch mode */
++   sql_query(mdb, "SET wait_timeout=691200");
++   sql_query(mdb, "SET interactive_timeout=691200");
++
+    V(mutex);
+    return 1;
+ }
index 5349e6763fbe2f87334092c79a5c598bc3c43324..e8ced7c7567f8b3c91609ceb87459d3efc918a58 100644 (file)
@@ -1,6 +1,8 @@
               Technical notes on version 2.4
 
 General:
+20Jul08
+ebl  fix #1034 by setting big timeout on mysql connections
 19Jul08
 kes  Do partial integration of the Win32 bat build created by Eric.
 kes  Fix bat not to block.