]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: Always sync dovecot.map.index with MAIL_INDEX_SYNC_FLAG_UPDATE_TAIL_OFFSET
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 17 Jun 2019 10:59:10 +0000 (13:59 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 4 Jul 2019 12:51:10 +0000 (15:51 +0300)
This avoids errors after the next commit.

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

index e5fdd702fca18f4a05cebfc59e7ed1f51a106e2c..3a6971c87a19b0445fefd4994108a2b23e570853 100644 (file)
@@ -1468,7 +1468,8 @@ static int mdbox_map_generate_uid_validity(struct mdbox_map *map)
 
        /* do this inside syncing, so that we're locked and there are no
           race conditions */
-       ret = mail_index_sync_begin(map->index, &sync_ctx, &view, &trans, 0);
+       ret = mail_index_sync_begin(map->index, &sync_ctx, &view, &trans,
+                                   MAIL_INDEX_SYNC_FLAG_UPDATE_TAIL_OFFSET);
        if (ret <= 0) {
                i_assert(ret != 0);
                return -1;