Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37772450
en ru br
ALT Linux repositórios
S:1.2.23-alt1
5.0: 0.8.7a-alt2
4.1: 0.8.7a-alt2

Group :: Monitoramento
RPM: cacti-spine

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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--;
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009