On Tue, 2010-09-07 at 18:07 -0700, David Jonas wrote:
> > Well, see if this helps:
> > http://hg.dovecot.org/dovecot-2.0/rev/902f008f17cf
> The patch didn't seem to make a difference. I'm still seeing the error.
> 
> If you have any ideas on debugging I'm open to trying them. Dovecot
> 2.0.1 running on CentOS release 4.8 (Final) i386. MySQL AB's
> devel/client/shared rpms, 4.1.22. I can insert some logging probes (or
> whatever you like) if you give me pointers on how and where.

Try the attached patch what it logs with it?
diff -r 711b5f193f04 src/lib-sql/driver-sqlpool.c
--- a/src/lib-sql/driver-sqlpool.c	Wed Sep 08 15:35:32 2010 +0100
+++ b/src/lib-sql/driver-sqlpool.c	Wed Sep 08 16:04:06 2010 +0100
@@ -330,6 +330,7 @@
 {
 	const struct sqlpool_connection *conns;
 	unsigned int i, count;
+	unsigned int busy_count = 0;
 
 	if (driver_sqlpool_get_connection(db, -1U, conn_r))
 		return TRUE;
@@ -343,6 +344,7 @@
 			return TRUE;
 		}
 	}
+	i_warning("%u/%u connections are busy", busy_count, count);
 	return FALSE;
 }
 

Reply via email to