The previous change assumed that mail_transaction_log_view_next() would
return -1 on read() error. However, it's actually returning -1 to indicate
a corrupted record.
Reverts
aae93d3ea73004ba1883bbf91c9e40f613ffc857
over following external transactions to avoid extra unneeded log
reading. */
i_assert(map->hdr.log_file_seq == index->log->head->hdr.file_seq);
- if (ret == 0 &&
- map->hdr.log_file_tail_offset < index->log->head->max_tail_offset) {
+ if (map->hdr.log_file_tail_offset < index->log->head->max_tail_offset) {
map->hdr.log_file_tail_offset =
index->log->head->max_tail_offset;
}