dovecot-1.1: pgsql: ROLLBACK wasn't sent correctly in synchronou...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 12 20:26:32 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/183c50ea7cc1
changeset: 8087:183c50ea7cc1
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 12 12:23:19 2009 -0500
description:
pgsql: ROLLBACK wasn't sent correctly in synchronous commit failures.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-sql/driver-pgsql.c |    2 +-

diffs (12 lines):

diff -r 75a47e2a7a68 -r 183c50ea7cc1 src/lib-sql/driver-pgsql.c
--- a/src/lib-sql/driver-pgsql.c	Mon Jan 12 12:05:58 2009 -0500
+++ b/src/lib-sql/driver-pgsql.c	Mon Jan 12 12:23:19 2009 -0500
@@ -853,7 +853,7 @@ driver_pgsql_transaction_commit_s(struct
 
 	if (ctx->failed) {
 		*error_r = ctx->error;
-		if (!ctx->opened)
+		if (ctx->opened)
 			sql_exec(_ctx->db, "ROLLBACK");
 	} else if (!ctx->opened)
 		*error_r = NULL;


More information about the dovecot-cvs mailing list