dovecot-2.2: fs-metawrap: Fixed fs_copy_finish_async() wrapping

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 5 21:57:23 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/c24783148d78
changeset: 16214:c24783148d78
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 05 21:57:11 2013 +0300
description:
fs-metawrap: Fixed fs_copy_finish_async() wrapping

diffstat:

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

diffs (18 lines):

diff -r e8ea4aacf329 -r c24783148d78 src/lib-fs/fs-metawrap.c
--- a/src/lib-fs/fs-metawrap.c	Fri Apr 05 21:03:20 2013 +0300
+++ b/src/lib-fs/fs-metawrap.c	Fri Apr 05 21:57:11 2013 +0300
@@ -368,8 +368,12 @@
 	struct metawrap_fs_file *src = (struct metawrap_fs_file *)_src;
 	struct metawrap_fs_file *dest = (struct metawrap_fs_file *)_dest;
 
-	if (!dest->fs->wrap_metadata)
-		return fs_copy(src->super, dest->super);
+	if (!dest->fs->wrap_metadata) {
+		if (_src != NULL)
+			return fs_copy(src->super, dest->super);
+		else
+			return fs_copy_finish_async(dest->super);
+	}
 	return fs_default_copy(_src, _dest);
 }
 


More information about the dovecot-cvs mailing list