]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: When finding a view is reset, don't attempt any further syncing.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 27 Sep 2016 16:45:57 +0000 (19:45 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 13 Oct 2016 08:20:56 +0000 (10:20 +0200)
This could cause various errors to be logged, such as:
Error: Append with UID 7103, but next_uid = 7242

src/lib-index/mail-index-view-sync.c

index c6ba75d1761cc65990b19fa259a693f3cb3000fe..2c173536691797e864a69843518d40ad9f90e2fb 100644 (file)
@@ -601,6 +601,8 @@ mail_index_view_sync_begin(struct mail_index_view *view,
                mail_index_set_error(view->index,
                                     "%s reset, view is now inconsistent",
                                     view->index->filepath);
+               ctx->failed = TRUE;
+               return ctx;
        }
 
        if (!have_expunges && !partial_sync) {