dovecot: Don't bother complaining about changed log offsets if f...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Sep 2 03:13:23 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/1829e8e32ddc
changeset: 6345:1829e8e32ddc
user: Timo Sirainen <tss at iki.fi>
date: Sun Sep 02 03:13:19 2007 +0300
description:
Don't bother complaining about changed log offsets if file also changed.
diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
src/lib-index/mail-index-fsck.c | 7 +++++--
diffs (17 lines):
diff -r e45ba2950722 -r 1829e8e32ddc src/lib-index/mail-index-fsck.c
--- 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 @@ mail_index_fsck_map(struct mail_index *i
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, !=);
More information about the dovecot-cvs
mailing list