changeset 7125:7ee2bee70d6a HEAD

Buffer writes to dovecot-uidlist instead of doing lots of small write()s.
author Timo Sirainen <tss@iki.fi>
date Sun, 06 Jan 2008 06:09:34 +0200
parents fe42e3097e23
children 0861436bfe14
files src/lib-storage/index/maildir/maildir-uidlist.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Sun Jan 06 05:16:32 2008 +0200
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Sun Jan 06 06:09:34 2008 +0200
@@ -895,6 +895,7 @@
 	i_assert(fd != -1);
 
 	output = o_stream_create_fd_file(fd, (uoff_t)-1, FALSE);
+	o_stream_cork(output);
 	str = t_str_new(512);
 
 	if (output->offset == 0) {