Mercurial > dovecot > core-2.2
diff src/doveadm/dsync/dsync-brain.c @ 20073:1b4e84d0a728
dsync: If full resync is requested, return empty state string.
If the state is wrong, it's better to fully resync all the mailboxes rather
than just the one where a problem was noticed.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 25 Apr 2016 14:35:21 +0300 |
parents | 25f06710e671 |
children | 16f9c0a46cbb |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain.c Mon Apr 25 14:08:37 2016 +0300 +++ b/src/doveadm/dsync/dsync-brain.c Mon Apr 25 14:35:21 2016 +0300 @@ -705,6 +705,9 @@ const uint8_t *guid_p; uint8_t *guid; + if (brain->require_full_resync) + return; + /* update mailbox states */ array_foreach(&brain->remote_mailbox_states, new_state) { guid_p = new_state->mailbox_guid;