dovecot-2.2: lib-fs: Fixed fs_default_copy() to work with async ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Mar 20 17:10:52 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/653d81709dd0
changeset: 16057:653d81709dd0
user: Timo Sirainen <tss at iki.fi>
date: Wed Mar 20 17:10:47 2013 +0200
description:
lib-fs: Fixed fs_default_copy() to work with async writes.
diffstat:
src/lib-fs/fs-api.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r fccd79d41d37 -r 653d81709dd0 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c Wed Mar 20 12:04:39 2013 +0200
+++ b/src/lib-fs/fs-api.c Wed Mar 20 17:10:47 2013 +0200
@@ -449,7 +449,7 @@
i_assert(src == NULL || src == dest->copy_src);
if (dest->copy_output == NULL) {
i_assert(dest->copy_input == NULL);
- if (fs_write_stream_finish_async(dest) < 0)
+ if (fs_write_stream_finish_async(dest) <= 0)
return -1;
dest->copy_src = NULL;
return 0;
@@ -477,7 +477,7 @@
return -1;
}
i_stream_unref(&dest->copy_input);
- if (fs_write_stream_finish(dest, &dest->copy_output) < 0)
+ if (fs_write_stream_finish(dest, &dest->copy_output) <= 0)
return -1;
dest->copy_src = NULL;
return 0;
More information about the dovecot-cvs
mailing list