After
b9da8540e665138b3cad0b637c08c0ab7d7a7eeb the tail offsets weren't
being updated anymore when mail_index_sync_next() wasn't used to skip
over all the data. Mailbox list index wasn't doing this, and so the log
was never rotated since tail_offset was never equal to head_offset.
ilist->updating_status = FALSE;
}
+ struct mail_index_sync_rec sync_rec;
+ while (mail_index_sync_next(list_sync_ctx, &sync_rec)) ;
if (mail_index_sync_commit(&list_sync_ctx) < 0) {
mailbox_set_index_error(box);
return -1;
mail_index_view_close(&sync_ctx->view);
if (success) {
+ struct mail_index_sync_rec sync_rec;
+ while (mail_index_sync_next(sync_ctx->index_sync_ctx, &sync_rec)) ;
if ((ret = mail_index_sync_commit(&sync_ctx->index_sync_ctx)) < 0)
mailbox_list_index_set_index_error(sync_ctx->list);
} else {