Skip to content

Commit

Permalink
dsync: Set brain->failed to TRUE when UIDVALIDITY changes
Browse files Browse the repository at this point in the history
This happens if UIDVALIDITY changes during stateful sync.

Fixes Panic: doveadm: file dsync-brain-mailbox.c: line 377 (dsync_brain_sync_mailbox_deinit): assertion failed: (brain->failed)
  • Loading branch information
cmouse authored and villesavolainen committed Jul 30, 2018
1 parent 64f4464 commit b547590
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doveadm/dsync/dsync-brain-mailbox.c
Expand Up @@ -721,6 +721,7 @@ bool dsync_brain_mailbox_update_pre(struct dsync_brain *brain,
sending mailbox changes, but not for all mails. */
dsync_mailbox_state_remove(brain, local_box->mailbox_guid);
*reason_r = "UIDVALIDITY changed during a stateful sync, need to restart";
brain->failed = TRUE;
ret = FALSE;
}
}
Expand Down

0 comments on commit b547590

Please sign in to comment.