]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Added a missing error logging.
authorTimo Sirainen <tss@iki.fi>
Tue, 29 Jun 2010 19:26:04 +0000 (20:26 +0100)
committerTimo Sirainen <tss@iki.fi>
Tue, 29 Jun 2010 19:26:04 +0000 (20:26 +0100)
--HG--
branch : HEAD

src/lib-index/mail-index-sync-update.c

index 5d22cf1b8999b52415c217e278484ff854e24aee..bf1d16e2cfadc9a03816d9bc8dfa95bc11121a84 100644 (file)
@@ -962,6 +962,9 @@ int mail_index_sync_map(struct mail_index_map **_map,
                mail_index_view_close(&view);
                if (force && ret == 0) {
                        /* the seq/offset is probably broken */
+                       mail_index_set_error(index, "Index %s: Lost log for "
+                               "seq=%u offset=%"PRIuUOFF_T, index->filepath,
+                               map->hdr.log_file_seq, start_offset);
                        (void)mail_index_fsck(index);
                }
                /* can't use it. sync by re-reading index. */