From 3d49dc64d5719e5f2497339c0137f7672a02018e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 25 Apr 2016 14:35:21 +0300 Subject: [PATCH] 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. --- src/doveadm/dsync/dsync-brain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doveadm/dsync/dsync-brain.c b/src/doveadm/dsync/dsync-brain.c index 915d4f23f7..3191708ead 100644 --- a/src/doveadm/dsync/dsync-brain.c +++ b/src/doveadm/dsync/dsync-brain.c @@ -705,6 +705,9 @@ void dsync_brain_get_state(struct dsync_brain *brain, string_t *output) 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; -- 2.47.3