From: Timo Sirainen Date: Mon, 17 Jun 2019 10:59:10 +0000 (+0300) Subject: mdbox: Always sync dovecot.map.index with MAIL_INDEX_SYNC_FLAG_UPDATE_TAIL_OFFSET X-Git-Tag: 2.3.7~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e2025caee82f5be1259770d44c81dfe8e52aab9;p=thirdparty%2Fdovecot%2Fcore.git mdbox: Always sync dovecot.map.index with MAIL_INDEX_SYNC_FLAG_UPDATE_TAIL_OFFSET This avoids errors after the next commit. --- diff --git a/src/lib-storage/index/dbox-multi/mdbox-map.c b/src/lib-storage/index/dbox-multi/mdbox-map.c index e5fdd702fc..3a6971c87a 100644 --- a/src/lib-storage/index/dbox-multi/mdbox-map.c +++ b/src/lib-storage/index/dbox-multi/mdbox-map.c @@ -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;