maildir-sync.c (dovecot-2.3.16) | : | maildir-sync.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 287 | skipping to change at line 287 | |||
ctx->flags = flags; | ctx->flags = flags; | |||
return ctx; | return ctx; | |||
} | } | |||
static void maildir_sync_deinit(struct maildir_sync_context *ctx) | static void maildir_sync_deinit(struct maildir_sync_context *ctx) | |||
{ | { | |||
if (ctx->uidlist_sync_ctx != NULL) | if (ctx->uidlist_sync_ctx != NULL) | |||
(void)maildir_uidlist_sync_deinit(&ctx->uidlist_sync_ctx, FALSE); | (void)maildir_uidlist_sync_deinit(&ctx->uidlist_sync_ctx, FALSE); | |||
if (ctx->index_sync_ctx != NULL) | if (ctx->index_sync_ctx != NULL) | |||
maildir_sync_index_rollback(&ctx->index_sync_ctx); | maildir_sync_index_rollback(&ctx->index_sync_ctx); | |||
if (ctx->mbox->storage->storage.rebuild_list_index) | ||||
(void)mail_storage_list_index_rebuild_and_set_uncorrupted(&ctx->m | ||||
box->storage->storage); | ||||
} | } | |||
static int maildir_fix_duplicate(struct maildir_sync_context *ctx, | static int maildir_fix_duplicate(struct maildir_sync_context *ctx, | |||
const char *dir, const char *fname2) | const char *dir, const char *fname2) | |||
{ | { | |||
const char *fname1, *path1, *path2; | const char *fname1, *path1, *path2; | |||
const char *new_fname, *new_path; | const char *new_fname, *new_path; | |||
struct stat st1, st2; | struct stat st1, st2; | |||
uoff_t size; | uoff_t size; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added |