dovecot-2.2: lib-index: Silently ignore next_uid shrinking witho...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Aug 5 13:46:47 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/374e338bb3d6
changeset: 16644:374e338bb3d6
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 05 13:46:37 2013 +0300
description:
lib-index: Silently ignore next_uid shrinking without treating them as errors.
diffstat:
src/lib-index/mail-index-sync-update.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (18 lines):
diff -r 3af0ae411b37 -r 374e338bb3d6 src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c Sun Aug 04 20:33:05 2013 +0300
+++ b/src/lib-index/mail-index-sync-update.c Mon Aug 05 13:46:37 2013 +0300
@@ -473,11 +473,10 @@
}
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
More information about the dovecot-cvs
mailing list