Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37850839
en ru br
ALT Linux repos
S:1.2.23-alt1
5.0: 0.8.7a-alt2
4.1: 0.8.7a-alt2

Group :: Monitoring
RPM: cacti-spine

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: mysql_client_reconnect.patch
Download


--- 0.8.7e/sql.c	2009-06-28 21:45:02.000000000 -0400
+++ ../branches/0.8.7/sql.c	2009-08-18 20:51:30.000000000 -0400
@@ -186,6 +186,12 @@
 		die("FATAL: MySQL options unable to set timeout value");
 	}
 
+	my_bool reconnect = 1;
+	options_error = mysql_options(mysql, MYSQL_OPT_RECONNECT, &reconnect);
+	if (options_error < 0) {
+		die("FATAL: MySQL options unable to set reconnect option\n");
+	}
+
 	while (tries > 0) {
 		tries--;
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin