Skip to content

Commit

Permalink
lib-index: fsck: Don't change log_file_tail_offset=0
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and cmouse committed Aug 7, 2018
1 parent d54b205 commit 79168d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib-index/mail-index-fsck.c
Expand Up @@ -47,7 +47,8 @@ mail_index_fsck_log_pos(struct mail_index *index, struct mail_index_map *map,

if (hdr->log_file_tail_offset > hdr->log_file_head_offset)
hdr->log_file_tail_offset = hdr->log_file_head_offset;
else if (hdr->log_file_tail_offset < MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE)
else if (hdr->log_file_tail_offset != 0 &&
hdr->log_file_tail_offset < MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE)
hdr->log_file_tail_offset = MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE;
} else {
/* index's log_file_seq is newer than exists. move it to
Expand Down

0 comments on commit 79168d0

Please sign in to comment.