[dovecot-cvs] dovecot/src/lib-sql driver-pgsql.c, 1.10.2.3, 1.10.2.4
tss at dovecot.org
tss at dovecot.org
Wed Mar 7 01:36:50 EET 2007
Update of /var/lib/cvs/dovecot/src/lib-sql
In directory talvi:/tmp/cvs-serv8471
Modified Files:
Tag: branch_1_0
driver-pgsql.c
Log Message:
Queueing code was somewhat broken and caused queries to get lost.
Index: driver-pgsql.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-sql/driver-pgsql.c,v
retrieving revision 1.10.2.3
retrieving revision 1.10.2.4
diff -u -d -r1.10.2.3 -r1.10.2.4
--- driver-pgsql.c 1 Jul 2006 19:15:49 -0000 1.10.2.3
+++ driver-pgsql.c 6 Mar 2007 23:36:48 -0000 1.10.2.4
@@ -367,6 +367,9 @@
queue = db->queue;
db->queue = queue->next;
+ if (db->queue == NULL)
+ db->queue_tail = &db->queue;
+
send_query(queue->result, queue->query);
i_free(queue->query);
@@ -404,6 +407,7 @@
queue->result = result;
*db->queue_tail = queue;
+ db->queue_tail = &queue->next;
if (db->queue_to == NULL)
db->queue_to = timeout_add(5000, queue_timeout, db);
More information about the dovecot-cvs
mailing list