dovecot-2.1: indexer: Fixed assert-crash when number of indexed ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 12 14:32:48 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/f4899179ad4c
changeset: 13449:f4899179ad4c
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 12 14:32:37 2011 +0300
description:
indexer: Fixed assert-crash when number of indexed messages was divisible by 100.

diffstat:

 src/indexer/master-connection.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff -r ea8f667ac6ef -r f4899179ad4c src/indexer/master-connection.c
--- a/src/indexer/master-connection.c	Mon Sep 12 14:27:46 2011 +0300
+++ b/src/indexer/master-connection.c	Mon Sep 12 14:32:37 2011 +0300
@@ -87,9 +87,7 @@
 		mail_precache(mail);
 		if (++counter % 100 == 0) {
 			percentage = counter*100 / max;
-			if (percentage != percentage_sent) {
-				i_assert(percentage < 100);
-
+			if (percentage != percentage_sent && percentage < 100) {
 				percentage_sent = percentage;
 				i_snprintf(percentage_str,
 					   sizeof(percentage_str), "%u\n",


More information about the dovecot-cvs mailing list