Mercurial > dovecot > core-2.2
changeset 19284:ef458c0a98b1
lib-index: Removed some unnecessary fields.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 04 Oct 2015 21:52:29 +0300 |
parents | 9e3d7e83a075 |
children | 279c156c90e2 |
files | src/lib-index/mail-index-map-read.c src/lib-index/mail-index-private.h src/lib-index/mail-index-write.c |
diffstat | 3 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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;
--- 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; }