]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixed syncing attribute streams.
authorTimo Sirainen <tss@iki.fi>
Mon, 25 Mar 2013 12:18:20 +0000 (14:18 +0200)
committerTimo Sirainen <tss@iki.fi>
Mon, 25 Mar 2013 12:18:20 +0000 (14:18 +0200)
src/doveadm/dsync/dsync-ibc-stream.c

index 842c9be2261a2a67544367918f511e44fe04ecf3..a1969fea638600d32e0e50f8e4de8964c8b54fda 100644 (file)
@@ -1298,6 +1298,11 @@ dsync_ibc_stream_recv_mailbox_attribute(struct dsync_ibc *_ibc,
        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;