dovecot-2.2: lib-fs: fs_write_stream_finish(file, NULL) is now a...

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 3 21:53:48 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/01d238b13719
changeset: 15719:01d238b13719
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 03 21:52:19 2013 +0200
description:
lib-fs: fs_write_stream_finish(file, NULL) is now alias to fs_write_stream_finish_async(file)
This makes wrapper implementations easier.

diffstat:

 src/lib-fs/fs-api.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1aed8e57ea1c -r 01d238b13719 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c	Sun Feb 03 21:51:40 2013 +0200
+++ b/src/lib-fs/fs-api.c	Sun Feb 03 21:52:19 2013 +0200
@@ -314,7 +314,7 @@
 
 int fs_write_stream_finish(struct fs_file *file, struct ostream **output)
 {
-	i_assert(*output == file->output);
+	i_assert(*output == file->output || *output == NULL);
 
 	*output = NULL;
 	return file->fs->v.write_stream_finish(file, TRUE);


More information about the dovecot-cvs mailing list