dovecot-2.0: lib-sql: When adding more connections to sql pool, ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 4 19:51:51 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/e758f10f40c1
changeset: 12648:e758f10f40c1
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 04 19:51:44 2011 +0200
description:
lib-sql: When adding more connections to sql pool, connect to them immediately.

diffstat:

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

diffs (12 lines):

diff -r f95b1e26f1f2 -r e758f10f40c1 src/lib-sql/driver-sqlpool.c
--- a/src/lib-sql/driver-sqlpool.c	Fri Mar 04 19:51:06 2011 +0200
+++ b/src/lib-sql/driver-sqlpool.c	Fri Mar 04 19:51:44 2011 +0200
@@ -356,6 +356,8 @@
 	if (conn == NULL) {
 		/* still nothing. try creating new connections */
 		conn = sqlpool_add_new_connection(db);
+		if (conn != NULL)
+			(void)sql_connect(conn->db);
 		if (conn == NULL || !SQL_DB_IS_READY(conn->db))
 			return FALSE;
 	}


More information about the dovecot-cvs mailing list