SOURCES: tpop3d-mysql-reconnect.patch ugh
arekm
arekm at pld-linux.org
Thu Dec 14 16:04:14 CET 2006
Author: arekm Date: Thu Dec 14 15:04:14 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
ugh
---- Files affected:
SOURCES:
tpop3d-mysql-reconnect.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/tpop3d-mysql-reconnect.patch
diff -u SOURCES/tpop3d-mysql-reconnect.patch:1.2 SOURCES/tpop3d-mysql-reconnect.patch:1.3
--- SOURCES/tpop3d-mysql-reconnect.patch:1.2 Thu Dec 14 16:00:53 2006
+++ SOURCES/tpop3d-mysql-reconnect.patch Thu Dec 14 16:04:08 2006
@@ -1,4 +1,3 @@
-? tpop3d-mysql-reconnect.patch
Index: auth_mysql.c
===================================================================
RCS file: /home/chris/vcvs/repos/tpop3d/auth_mysql.c,v
@@ -10,7 +9,7 @@
static MYSQL mysql_handle;
char *password;
unsigned int timeout;
-+ my_bool my_true = 0;
++ my_bool want_reconnect = 0;
if (mysql && mysql_ping(mysql) == 0)
/* The current server is up and running. */
@@ -18,8 +17,8 @@
timeout = 5;
mysql_options(mysql, MYSQL_OPT_CONNECT_TIMEOUT, (char*)&(timeout));
-+ /* We want reconnect to happen. */
-+ mysql_options(mysql, MYSQL_OPT_RECONNECT, &my_true);
++ /* We do not want automatic reconnect to happen. */
++ mysql_options(mysql, MYSQL_OPT_RECONNECT, &want_reconnect);
+
if (mysql_real_connect(mysql, mysql_servers->toks[n],
config_get_string("auth-mysql-username"),
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/tpop3d-mysql-reconnect.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list