[dovecot-cvs] dovecot/src/lib-index/mbox mbox-rewrite.c,1.32,1.33
cras at procontrol.fi
cras at procontrol.fi
Mon Oct 28 06:18:28 EET 2002
Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv7362/lib-index/mbox
Modified Files:
mbox-rewrite.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-rewrite.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-rewrite.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- mbox-rewrite.c 27 Oct 2002 06:37:18 -0000 1.32
+++ mbox-rewrite.c 28 Oct 2002 04:18:26 -0000 1.33
@@ -374,8 +374,7 @@
inbuf = i_buffer_create_mmap(in_fd, data_stack_pool,
1024*256, 0, 0, FALSE);
- outbuf = o_buffer_create_file(out_fd, data_stack_pool, 1024,
- IO_PRIORITY_DEFAULT, FALSE);
+ outbuf = o_buffer_create_file(out_fd, data_stack_pool, 1024, 0, FALSE);
ret = o_buffer_send_ibuffer(outbuf, inbuf);
if (ret < 0)
@@ -459,8 +458,7 @@
//offset = hdr_size = body_size = 0; /* just to keep compiler happy */
t_push();
- outbuf = o_buffer_create_file(tmp_fd, data_stack_pool, 8192,
- IO_PRIORITY_DEFAULT, FALSE);
+ outbuf = o_buffer_create_file(tmp_fd, data_stack_pool, 8192, 0, FALSE);
failed = FALSE; seq = 1;
rec = index->lookup(index, 1);
More information about the dovecot-cvs
mailing list