diff src/doveadm/dsync/dsync-ibc-stream.c @ 16109:acb88f199704

dsync: Fixed syncing attribute streams.
author Timo Sirainen <tss@iki.fi>
date Mon, 25 Mar 2013 14:18:20 +0200
parents 0e5a359b7b7f
children c51873a8e0d9
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Mon Mar 25 13:55:41 2013 +0200
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Mon Mar 25 14:18:20 2013 +0200
@@ -1298,6 +1298,11 @@
 	if (ibc->minor_version < DSYNC_PROTOCOL_MINOR_HAVE_ATTRIBUTES)
 		return DSYNC_IBC_RECV_RET_FINISHED;
 
+	if (ibc->value_input != NULL) {
+		/* wait until the mail's stream has been read */
+		return DSYNC_IBC_RECV_RET_TRYAGAIN;
+	}
+
 	if (ibc->cur_attr != NULL) {
 		/* finished reading the stream, return the mail now */
 		*attr_r = ibc->cur_attr;