]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Fixes #1034
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 6 Jan 2008 19:57:42 +0000 (19:57 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 6 Jan 2008 19:57:42 +0000 (19:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@6247 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.7-mysql-batch-timeout.patch [new file with mode: 0644]

diff --git a/bacula/patches/2.2.7-mysql-batch-timeout.patch b/bacula/patches/2.2.7-mysql-batch-timeout.patch
new file mode 100644 (file)
index 0000000..0ee9d62
--- /dev/null
@@ -0,0 +1,15 @@
+Index: src/cats/mysql.c
+===================================================================
+--- src/cats/mysql.c   (rĂ©vision 6192)
++++ 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;
+ }