From: Timo Sirainen Date: Mon, 23 Mar 2009 20:08:09 +0000 (-0400) Subject: Don't reset modseqs when reseting index. X-Git-Tag: 2.0.alpha1~1038^2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf8f4f90cb5e5f32c2611ba3425557964b9c47fc;p=thirdparty%2Fdovecot%2Fcore.git Don't reset modseqs when reseting index. --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-transaction-log-file.c b/src/lib-index/mail-transaction-log-file.c index c3c7bf40d5..434044f64d 100644 --- a/src/lib-index/mail-transaction-log-file.c +++ b/src/lib-index/mail-transaction-log-file.c @@ -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) {