dovecot-2.1: lib-index: Replaced assert-crash with "index corrup...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Apr 29 10:13:35 UTC 2014
details: http://hg.dovecot.org/dovecot-2.1/rev/b20b4071a282
changeset: 15014:b20b4071a282
user: Timo Sirainen <tss at iki.fi>
date: Mon Aug 05 14:06:23 2013 +0300
description:
lib-index: Replaced assert-crash with "index corrupted" error.
diffstat:
src/lib-index/mail-index-sync-update.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 2799cc960c0d -r b20b4071a282 src/lib-index/mail-index-sync-update.c
--- a/src/lib-index/mail-index-sync-update.c Tue Mar 18 16:49:10 2014 +0200
+++ b/src/lib-index/mail-index-sync-update.c Mon Aug 05 14:06:23 2013 +0300
@@ -176,8 +176,10 @@
if (all) {
mail_index_sync_header_update_counts_all(ctx, uid, old_flags,
new_flags);
+ } else if (uid >= ctx->view->map->hdr.next_uid) {
+ mail_index_sync_set_corrupted(ctx, "uid %u >= next_uid %u",
+ uid, ctx->view->map->hdr.next_uid);
} else {
- i_assert(uid < ctx->view->map->hdr.next_uid);
if (mail_index_header_update_counts(&ctx->view->map->hdr,
old_flags, new_flags,
&error) < 0)
More information about the dovecot-cvs
mailing list