dovecot-2.0: mysql: When using multiple hosts, it never connecte...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 17 18:56:00 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/666fd046ab7f
changeset: 12435:666fd046ab7f
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 17 16:55:56 2010 +0000
description:
mysql: When using multiple hosts, it never connected to more than the first one.

diffstat:

 src/lib-sql/driver-mysql.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 990abbb6d3dd -r 666fd046ab7f src/lib-sql/driver-mysql.c
--- a/src/lib-sql/driver-mysql.c	Wed Nov 17 16:55:44 2010 +0000
+++ b/src/lib-sql/driver-mysql.c	Wed Nov 17 16:55:56 2010 +0000
@@ -61,6 +61,8 @@
 
 	i_assert(db->api.state == SQL_DB_STATE_DISCONNECTED);
 
+	sql_db_set_state(&db->api, SQL_DB_STATE_CONNECTING);
+
 	if (*db->host == '/') {
 		unix_socket = db->host;
 		host = NULL;


More information about the dovecot-cvs mailing list