[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-expunge.c,1.18,1.19 mbox-save.c,1.20,1.21

cras at procontrol.fi cras at procontrol.fi
Mon Oct 28 06:18:28 EET 2002


Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv7362/lib-storage/index/mbox

Modified Files:
	mbox-expunge.c mbox-save.c 
Log Message:
I/O buffers now use real blocking instead of setting up a sub-ioloop to
poll(). alarm() is called every 30 secs to send SIGHUP and break out of the
read/write calls, so the given timeout values aren't exact.

Also some other cleanups, like not including ioloop.h in [io]buffer.h which
broke several other files which hadn't included it itself..



Index: mbox-expunge.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-expunge.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- mbox-expunge.c	27 Oct 2002 06:37:18 -0000	1.18
+++ mbox-expunge.c	28 Oct 2002 04:18:26 -0000	1.19
@@ -128,7 +128,7 @@
 
 	t_push();
 	outbuf = o_buffer_create_file(ibox->index->mbox_fd, data_stack_pool,
-				      4096, IO_PRIORITY_DEFAULT, FALSE);
+				      4096, 0, FALSE);
 
 	failed = !expunge_real(ibox, rec, seq, inbuf, outbuf, notify);
 

Index: mbox-save.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-save.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- mbox-save.c	26 Oct 2002 19:38:37 -0000	1.20
+++ mbox-save.c	28 Oct 2002 04:18:26 -0000	1.21
@@ -195,7 +195,7 @@
 		t_push();
 		outbuf = o_buffer_create_file(index->mbox_fd,
 					      data_stack_pool, 4096,
-					      IO_PRIORITY_DEFAULT, FALSE);
+					      0, FALSE);
 
 		if (!write_from_line(box->storage, outbuf, mbox_path,
 				     internal_date) ||




More information about the dovecot-cvs mailing list