dovecot-2.0: pgsql: Don't assert-crash on "query timed out" error.

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 17 08:41:48 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/7d265040cd02
changeset: 12600:7d265040cd02
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 17 08:41:46 2011 +0200
description:
pgsql: Don't assert-crash on "query timed out" error.

diffstat:

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

diffs (14 lines):

diff -r 3c61817f30bb -r 7d265040cd02 src/lib-sql/driver-pgsql.c
--- a/src/lib-sql/driver-pgsql.c	Thu Feb 17 08:29:47 2011 +0200
+++ b/src/lib-sql/driver-pgsql.c	Thu Feb 17 08:41:46 2011 +0200
@@ -422,6 +422,10 @@
 
 static void query_timeout(struct pgsql_result *result)
 {
+        struct pgsql_db *db = (struct pgsql_db *)result->api.db;
+
+	driver_pgsql_stop_io(db);
+
 	i_error("pgsql: Query timed out, aborting");
 	result->timeout = TRUE;
 	result_finish(result);


More information about the dovecot-cvs mailing list