Skip to content

Commit

Permalink
mdbox: Fix crash if resync fails because of an early failure
Browse files Browse the repository at this point in the history
This mainly happened if dovecot.map.index.log was locked and resync timed
out waiting for it.
  • Loading branch information
sirainen committed Nov 20, 2024
1 parent 6dafabe commit b3fcfa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-storage/index/dbox-multi/mdbox-map.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ void mdbox_map_atomic_set_success(struct mdbox_map_atomic_context *atomic)

void mdbox_map_atomic_unset_fscked(struct mdbox_map_atomic_context *atomic)
{
mail_index_unset_fscked(atomic->sync_trans);
if (atomic->sync_trans != NULL)
mail_index_unset_fscked(atomic->sync_trans);
}

int mdbox_map_atomic_finish(struct mdbox_map_atomic_context **_atomic)
Expand Down

0 comments on commit b3fcfa0

Please sign in to comment.