Mercurial > dovecot > core-2.2
changeset 12435:666fd046ab7f
mysql: When using multiple hosts, it never connected to more than the first one.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 17 Nov 2010 16:55:56 +0000 |
parents | 990abbb6d3dd |
children | aec1f1614028 |
files | src/lib-sql/driver-mysql.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;