]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Fix checking if modseq header is up-to-date
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 5 Aug 2017 05:16:31 +0000 (14:16 +0900)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 14 Aug 2017 08:20:26 +0000 (11:20 +0300)
We were almost always assuming that it is.

src/lib-index/mail-index-modseq.c

index 54ed6b7b39b961652c93a92e89a985538b829b69..37bd278120559c9e8f5c5817719f1a9f754936d7 100644 (file)
@@ -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;