Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-index/mail-index-fsck.c @ 6345:1829e8e32ddc HEAD
Don't bother complaining about changed log offsets if file also changed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 02 Sep 2007 03:13:19 +0300 |
parents | 6418139447fa |
children | 29f427039e00 |
line wrap: on
line diff
--- a/src/lib-index/mail-index-fsck.c Sun Sep 02 03:07:22 2007 +0300 +++ b/src/lib-index/mail-index-fsck.c Sun Sep 02 03:13:19 2007 +0300 @@ -118,8 +118,11 @@ hdr.first_recent_uid = 1; CHECK(log_file_seq, !=); - CHECK(log_file_head_offset, !=); - CHECK(log_file_tail_offset, !=); + if (hdr.log_file_seq == map->hdr.log_file_seq) { + /* don't bother complaining about these if file changed too */ + CHECK(log_file_head_offset, !=); + CHECK(log_file_tail_offset, !=); + } CHECK(uid_validity, !=); CHECK(messages_count, !=);