dovecot-2.2: lib-fs: fs_write_stream() now automatically corks t...
dovecot at dovecot.org
dovecot at dovecot.org
Fri May 29 04:05:33 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/0c55e484914c
changeset: 18755:0c55e484914c
user: Timo Sirainen <tss at iki.fi>
date: Fri May 29 07:03:15 2015 +0300
description:
lib-fs: fs_write_stream() now automatically corks the ostream and uncorks at _finish().
diffstat:
src/lib-fs/fs-api.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r 492d638c52c6 -r 0c55e484914c src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c Fri May 29 05:43:25 2015 +0300
+++ b/src/lib-fs/fs-api.c Fri May 29 07:03:15 2015 +0300
@@ -549,6 +549,7 @@
file->fs->v.write_stream(file);
} T_END;
i_assert(file->output != NULL);
+ o_stream_cork(file->output);
return file->output;
}
@@ -559,6 +560,8 @@
i_assert(*output == file->output || *output == NULL);
*output = NULL;
+ if (file->output != NULL)
+ o_stream_uncork(file->output);
T_BEGIN {
ret = file->fs->v.write_stream_finish(file, TRUE);
} T_END;
More information about the dovecot-cvs
mailing list