]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Silently ignore next_uid shrinking without treating them as errors.
authorTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 10:46:37 +0000 (13:46 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 Aug 2013 10:46:37 +0000 (13:46 +0300)
src/lib-index/mail-index-sync-update.c

index 508209cca08ac7d71933a1f3d0b8ac2f9fadc57e..66ac3ff126301a70beee2c6edb23cc0ee349aed9 100644 (file)
@@ -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