[dovecot-cvs] dovecot/src/lib-sql driver-pgsql.c,1.16,1.17

tss at dovecot.org tss at dovecot.org
Fri Mar 9 00:08:36 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-sql
In directory talvi:/tmp/cvs-serv6674/lib-sql

Modified Files:
	driver-pgsql.c 
Log Message:
Fixed to work with new ioloop code



Index: driver-pgsql.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-sql/driver-pgsql.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- driver-pgsql.c	6 Mar 2007 23:43:27 -0000	1.16
+++ driver-pgsql.c	8 Mar 2007 22:08:34 -0000	1.17
@@ -500,15 +500,15 @@
 	struct io old_io;
 
 	if (db->io == NULL)
-		db->ioloop = io_loop_create(default_pool);
+		db->ioloop = io_loop_create();
 	else {
 		/* have to move our existing I/O handler to new I/O loop */
 		old_io = *db->io;
 		io_remove(&db->io);
 
-		db->ioloop = io_loop_create(default_pool);
+		db->ioloop = io_loop_create();
 
-		db->io = io_add(old_io.fd, old_io.condition,
+		db->io = io_add(PQsocket(db->pg), old_io.condition,
 				old_io.callback, old_io.context);
 	}
 



More information about the dovecot-cvs mailing list