]> git.pld-linux.org Git - packages/cacti-spine.git/blame - mysql_client_reconnect.patch
- add 3 official patches
[packages/cacti-spine.git] / mysql_client_reconnect.patch
CommitLineData
74f5a752
ER
1--- 0.8.7e/sql.c 2009-06-28 21:45:02.000000000 -0400
2+++ ../branches/0.8.7/sql.c 2009-08-18 20:51:30.000000000 -0400
3@@ -186,6 +186,12 @@
4 die("FATAL: MySQL options unable to set timeout value");
5 }
6
7+ my_bool reconnect = 1;
8+ options_error = mysql_options(mysql, MYSQL_OPT_RECONNECT, &reconnect);
9+ if (options_error < 0) {
10+ die("FATAL: MySQL options unable to set reconnect option\n");
11+ }
12+
13 while (tries > 0) {
14 tries--;
15
This page took 0.114968 seconds and 4 git commands to generate.