Skip to content

Commit

Permalink
lib-index: Fix checking if modseq header is up-to-date
Browse files Browse the repository at this point in the history
We were almost always assuming that it is.
  • Loading branch information
sirainen authored and villesavolainen committed Aug 14, 2017
1 parent 6dc9d7d commit 670ac74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-index/mail-index-modseq.c
Expand Up @@ -428,7 +428,7 @@ static void mail_index_modseq_sync_init(struct mail_index_modseq_sync *ctx)
dovecot.index file. */
mail_transaction_log_view_get_prev_pos(ctx->view->log_view,
&end_seq, &end_offset);
if (end_seq <= hdr->log_seq ||
if (end_seq < hdr->log_seq ||
(end_seq == hdr->log_seq && end_offset <= hdr->log_offset)) {
/* modseqs are up to date */
return;
Expand Down

0 comments on commit 670ac74

Please sign in to comment.