Mercurial > dovecot > core-2.2
changeset 16109:acb88f199704
dsync: Fixed syncing attribute streams.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Mar 2013 14:18:20 +0200 |
parents | 0634cf4acf8d |
children | c51873a8e0d9 |
files | src/doveadm/dsync/dsync-ibc-stream.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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;