Skip to content

Commit

Permalink
dsync: Fix potential assert on mailbox deinit.
Browse files Browse the repository at this point in the history
Should have happened only in somewhat rare error conditions that require
resyncing.

Fixes:
Panic: file dsync-brain-mailbox.c: line 358 (dsync_brain_sync_mailbox_deinit): assertion failed: (brain->failed || brain->sync_type == DSYNC_BRAIN_SYNC_TYPE_CHANGED)
  • Loading branch information
sirainen committed Oct 28, 2016
1 parent c2b23ae commit 42f5200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doveadm/dsync/dsync-brain-mailbox.c
Expand Up @@ -354,7 +354,7 @@ void dsync_brain_sync_mailbox_deinit(struct dsync_brain *brain)
if (brain->box_exporter != NULL) {
const char *errstr;

i_assert(brain->failed ||
i_assert(brain->failed || brain->require_full_resync ||
brain->sync_type == DSYNC_BRAIN_SYNC_TYPE_CHANGED);
if (dsync_mailbox_export_deinit(&brain->box_exporter,
&errstr, &error) < 0)
Expand Down

0 comments on commit 42f5200

Please sign in to comment.