From 1e1a8276888122e618e0560674d58c47351ab9df Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 6 Jan 2008 19:57:42 +0000 Subject: [PATCH] ebl Fixes #1034 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bacula/patches/2.2.7-mysql-batch-timeout.patch 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 index 0000000000..0ee9d624e5 --- /dev/null +++ b/bacula/patches/2.2.7-mysql-batch-timeout.patch @@ -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; + } -- 2.39.5