]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Thu, 10 Aug 2017 10:25:13 +0000 (13:25 +0300)
Broken by b9da8540e665138b3cad0b637c08c0ab7d7a7eeb

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

index 9dac3ef1f06f73d5188f8e71075fde3bb6c1bbf6..f9f891aacf65c715e9e97a9ce61f98034bb0aa28 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,