From: Timo Sirainen Date: Mon, 5 Aug 2013 10:46:37 +0000 (+0300) Subject: lib-index: Silently ignore next_uid shrinking without treating them as errors. X-Git-Tag: 2.2.5~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5efcaaace97d50e58e57424ee5bc51c7a0e942b4;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Silently ignore next_uid shrinking without treating them as errors. --- diff --git a/src/lib-index/mail-index-sync-update.c b/src/lib-index/mail-index-sync-update.c index 508209cca0..66ac3ff126 100644 --- a/src/lib-index/mail-index-sync-update.c +++ b/src/lib-index/mail-index-sync-update.c @@ -473,11 +473,10 @@ static int sync_header_update(const struct mail_transaction_header_update *u, } if (map->hdr.next_uid < orig_next_uid) { - mail_index_sync_set_corrupted(ctx, - "next_uid shrank ignored: %u -> %u", - orig_next_uid, map->hdr.next_uid); + /* next_uid update tried to shrink its value. this can happen + in some race conditions with e.g. with dsync, so just + silently ignore it. */ map->hdr.next_uid = orig_next_uid; - return -1; } /* the tail offset updates are intended for internal transaction