dovecot: Buffer writes to dovecot-uidlist instead of doing lots ...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jan 6 06:09:38 EET 2008
details: http://hg.dovecot.org/dovecot/rev/7ee2bee70d6a
changeset: 7125:7ee2bee70d6a
user: Timo Sirainen <tss at iki.fi>
date: Sun Jan 06 06:09:34 2008 +0200
description:
Buffer writes to dovecot-uidlist instead of doing lots of small write()s.
diffstat:
1 file changed, 1 insertion(+)
src/lib-storage/index/maildir/maildir-uidlist.c | 1 +
diffs (11 lines):
diff -r fe42e3097e23 -r 7ee2bee70d6a src/lib-storage/index/maildir/maildir-uidlist.c
--- 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 @@ static int maildir_uidlist_write_fd(stru
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) {
More information about the dovecot-cvs
mailing list