Removed
Link Here
|
1 |
--- src/mysql.c.orig 2005-09-04 03:34:02 UTC |
2 |
+++ src/mysql.c |
3 |
@@ -196,6 +196,7 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult) |
4 |
int retval; |
5 |
sql_server_t *server = &conf.sql.server; |
6 |
unsigned int port; |
7 |
+ my_bool reconnect = 1; |
8 |
|
9 |
DENTER |
10 |
|
11 |
@@ -238,8 +239,9 @@ _nss_mysql_connect_sql (MYSQL_RES **mresult) |
12 |
DSRETURN (NSS_UNAVAIL) |
13 |
} |
14 |
ci.valid = ntrue; |
15 |
- ci.link.reconnect = 0; /* Safety: We can't let MySQL assume socket is |
16 |
- still valid; see _nss_mysql_validate_socket */ |
17 |
+ /* Safety: We can't let MySQL assume socket is still valid; |
18 |
+ see _nss_mysql_validate_socket */ |
19 |
+ mysql_options(&ci.link, MYSQL_OPT_RECONNECT, &reconnect); |
20 |
DSRETURN (NSS_SUCCESS) |
21 |
} |
22 |
_nss_mysql_log (LOG_ALERT, "Connection to server '%s' failed: %s", |