]> 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)
committerGitLab <gitlab@git.dovecot.net>
Tue, 4 Oct 2016 20:32:29 +0000 (23:32 +0300)
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 25b47dfcc77e284a8412a8005fd671ae6c605ab5..2c07942e5432bda20da9fddf06d6c2e540f335dc 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) {