dovecot-1.2: dict-file: Minor optimization when writing the file.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 5 20:03:09 EET 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/4a608f96609b
changeset: 8388:4a608f96609b
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 05 20:03:05 2008 +0200
description:
dict-file: Minor optimization when writing the file.
diffstat:
1 file changed, 1 insertion(+)
src/lib-dict/dict-file.c | 1 +
diffs (11 lines):
diff -r fbd90ad20593 -r 4a608f96609b src/lib-dict/dict-file.c
--- a/src/lib-dict/dict-file.c Wed Nov 05 14:37:35 2008 +0200
+++ b/src/lib-dict/dict-file.c Wed Nov 05 20:03:05 2008 +0200
@@ -302,6 +302,7 @@ static int file_dict_write_changes(struc
file_dict_apply_changes(ctx);
output = o_stream_create_fd(fd, 0, FALSE);
+ o_stream_cork(output);
iter = hash_iterate_init(dict->hash);
while (hash_iterate(iter, &key, &value)) {
o_stream_send_str(output, key);
More information about the dovecot-cvs
mailing list