]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dbox: Improved "Inconsistency in map index" error message.
authorTimo Sirainen <tss@iki.fi>
Mon, 23 Mar 2009 20:54:42 +0000 (16:54 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 23 Mar 2009 20:54:42 +0000 (16:54 -0400)
--HG--
branch : HEAD

src/lib-storage/index/dbox/dbox-map.c

index 0b1e5ed9f396e22d0e62c7260c49e429ee16fbd5..a3c88946f5964bb2d54d4613570818f36c83e642 100644 (file)
@@ -277,8 +277,10 @@ dbox_map_sync_handle(struct dbox_map *map, struct mail_index_sync_ctx *sync_ctx)
        mail_index_sync_get_offsets(sync_ctx, &seq1, &offset1, &seq2, &offset2);
        if (offset1 != offset2 || seq1 != seq2) {
                /* something had crashed. need a full resync. */
-               i_warning("dbox %s: Inconsistency in map index",
-                         map->storage->storage_dir);
+               i_warning("dbox %s: Inconsistency in map index "
+                         "(%u,%"PRIuUOFF_T" != %u,%"PRIuUOFF_T")",
+                         map->storage->storage_dir,
+                         seq1, offset1, seq2, offset2);
                map->storage->sync_rebuild = TRUE;
        } else {
                while (mail_index_sync_next(sync_ctx, &sync_rec)) ;