Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8388:4a608f96609b HEAD
dict-file: Minor optimization when writing the file.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 05 Nov 2008 20:03:05 +0200 |
parents | fbd90ad20593 |
children | b9e34721e74c |
files | src/lib-dict/dict-file.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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);