changeset 6379:b734f6cf4bd8 HEAD

Removed MAIL_INDEX_HDR_FLAG_FSCK. It's not used anymore.
author Timo Sirainen <tss@iki.fi>
date Sat, 15 Sep 2007 10:20:02 +0300
parents 12d4b757b825
children 12e12b15f6e3
files src/lib-index/mail-index-fsck.c src/lib-index/mail-index-map.c src/lib-index/mail-index.h
diffstat 3 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-fsck.c	Sat Sep 15 10:11:58 2007 +0300
+++ b/src/lib-index/mail-index-fsck.c	Sat Sep 15 10:20:02 2007 +0300
@@ -57,8 +57,6 @@
 	if (hdr.uid_validity == 0 && hdr.next_uid != 1)
 		hdr.uid_validity = ioloop_time;
 
-	hdr.flags &= ~MAIL_INDEX_HDR_FLAG_FSCK;
-
 	if (hdr.log_file_seq < file_seq) {
 		hdr.log_file_head_offset = hdr.log_file_tail_offset =
 			sizeof(struct mail_transaction_log_header);
--- a/src/lib-index/mail-index-map.c	Sat Sep 15 10:11:58 2007 +0300
+++ b/src/lib-index/mail-index-map.c	Sat Sep 15 10:20:02 2007 +0300
@@ -391,9 +391,6 @@
 		return -1;
 	}
 
-	if ((hdr->flags & MAIL_INDEX_HDR_FLAG_FSCK) != 0)
-		return 0;
-
 	if (hdr->uid_validity == 0 && hdr->next_uid != 1)
 		return 0;
 	if (hdr->next_uid == 0)
--- a/src/lib-index/mail-index.h	Sat Sep 15 10:11:58 2007 +0300
+++ b/src/lib-index/mail-index.h	Sat Sep 15 10:20:02 2007 +0300
@@ -31,9 +31,7 @@
 enum mail_index_header_flag {
 	/* Index file is corrupted, reopen or recreate it. */
 	MAIL_INDEX_HDR_FLAG_CORRUPTED		= 0x0001,
-	MAIL_INDEX_HDR_FLAG_HAVE_DIRTY		= 0x0002,
-	/* fsck the index next time when opening */
-	MAIL_INDEX_HDR_FLAG_FSCK		= 0x0004
+	MAIL_INDEX_HDR_FLAG_HAVE_DIRTY		= 0x0002
 };
 
 enum mail_index_mail_flags {