dovecot-2.2: lib-index: Removed some unnecessary fields.

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 4 18:54:13 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/ef458c0a98b1
changeset: 19284:ef458c0a98b1
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 04 21:52:29 2015 +0300
description:
lib-index: Removed some unnecessary fields.

diffstat:

 src/lib-index/mail-index-map-read.c |  3 ---
 src/lib-index/mail-index-private.h  |  5 +----
 src/lib-index/mail-index-write.c    |  1 -
 3 files changed, 1 insertions(+), 8 deletions(-)

diffs (42 lines):

diff -r 9e3d7e83a075 -r ef458c0a98b1 src/lib-index/mail-index-map-read.c
--- a/src/lib-index/mail-index-map-read.c	Sun Oct 04 21:51:55 2015 +0300
+++ b/src/lib-index/mail-index-map-read.c	Sun Oct 04 21:52:29 2015 +0300
@@ -385,11 +385,8 @@
 	i_assert(new_map->rec_map->records != NULL);
 
 	index->last_read_log_file_seq = new_map->hdr.log_file_seq;
-	index->last_read_log_file_head_offset =
-		new_map->hdr.log_file_head_offset;
 	index->last_read_log_file_tail_offset =
 		new_map->hdr.log_file_tail_offset;
-	index->last_read_stat = st;
 
 	mail_index_unmap(&index->map);
 	index->map = new_map;
diff -r 9e3d7e83a075 -r ef458c0a98b1 src/lib-index/mail-index-private.h
--- a/src/lib-index/mail-index-private.h	Sun Oct 04 21:51:55 2015 +0300
+++ b/src/lib-index/mail-index-private.h	Sun Oct 04 21:52:29 2015 +0300
@@ -188,12 +188,9 @@
 
 	/* last_read_log_file_* contains the seq/offsets we last read from
 	   the main index file's headers. these are used to figure out when
-	   the main index file should be updated, and if we can update it
-	   by writing on top of it or if we need to recreate it. */
+	   the main index file should be updated. */
 	uint32_t last_read_log_file_seq;
-	uint32_t last_read_log_file_head_offset;
 	uint32_t last_read_log_file_tail_offset;
-	struct stat last_read_stat;
 
 	/* transaction log head seq/offset when we last fscked */
 	uint32_t fsck_log_head_file_seq;
diff -r 9e3d7e83a075 -r ef458c0a98b1 src/lib-index/mail-index-write.c
--- a/src/lib-index/mail-index-write.c	Sun Oct 04 21:51:55 2015 +0300
+++ b/src/lib-index/mail-index-write.c	Sun Oct 04 21:52:29 2015 +0300
@@ -149,6 +149,5 @@
 	}
 
 	index->last_read_log_file_seq = hdr->log_file_seq;
-	index->last_read_log_file_head_offset = hdr->log_file_head_offset;
 	index->last_read_log_file_tail_offset = hdr->log_file_tail_offset;
 }


More information about the dovecot-cvs mailing list