]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Don't reset modseqs when reseting index.
authorTimo Sirainen <tss@iki.fi>
Mon, 23 Mar 2009 20:08:09 +0000 (16:08 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 23 Mar 2009 20:08:09 +0000 (16:08 -0400)
--HG--
branch : HEAD

src/lib-index/mail-transaction-log-file.c

index c3c7bf40d5860067b0d6c0b39dec03932c02f329..434044f64d7198ca3eb6b548717e08cf9e0c9738 100644 (file)
@@ -586,9 +586,11 @@ mail_transaction_log_file_create2(struct mail_transaction_log_file *file,
                return -1;
 
        if (reset) {
+               /* don't reset modseqs. if we're reseting due to rebuilding
+                  indexes we'll probably want to keep uidvalidity and in such
+                  cases we really don't want to shrink modseqs. */
                file->hdr.prev_file_seq = 0;
                file->hdr.prev_file_offset = 0;
-               file->hdr.initial_modseq = 0;
        }
 
        if (write_full(new_fd, &file->hdr, sizeof(file->hdr)) < 0) {