]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: "Inconsistency in map index" wasn't fixing itself automatically
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 7 Aug 2017 21:31:57 +0000 (00:31 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 7 Aug 2017 21:31:57 +0000 (00:31 +0300)
Broken by b9da8540e665138b3cad0b637c08c0ab7d7a7eeb

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

index b597ad2637835c93c3117d1fcaf14af13724ca88..7d23ab636aa2ff95a94c2bf7240dbe29fc1107a4 100644 (file)
@@ -491,9 +491,8 @@ mdbox_map_sync_handle(struct mdbox_map *map,
                          "(%u,%"PRIuUOFF_T" != %u,%"PRIuUOFF_T")",
                          map->path, seq1, offset1, seq2, offset2);
                mdbox_storage_set_corrupted(map->storage);
-       } else {
-               while (mail_index_sync_next(sync_ctx, &sync_rec)) ;
        }
+       while (mail_index_sync_next(sync_ctx, &sync_rec)) ;
 }
 
 int mdbox_map_atomic_lock(struct mdbox_map_atomic_context *atomic,