dovecot: Expunge fix

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 16 14:22:23 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/affc1f7ccca7
changeset: 7249:affc1f7ccca7
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Feb 16 14:22:42 2008 +0200
description:
Expunge fix

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/plugins/fts-squat/squat-trie.c |    4 ++--

diffs (14 lines):

diff -r 49e91699be7d -r affc1f7ccca7 src/plugins/fts-squat/squat-trie.c
--- a/src/plugins/fts-squat/squat-trie.c	Sat Feb 16 13:22:10 2008 +0200
+++ b/src/plugins/fts-squat/squat-trie.c	Sat Feb 16 14:22:42 2008 +0200
@@ -1206,8 +1206,8 @@ squat_uidlist_update_expunged_uids(const
 				uids[uid_idx].seq1 += child_shift_count;
 			} else {
 				seq_range_array_remove_range(uids_arr,
-							     shift.seq1,
-							     shift.seq2);
+					shift.seq1,
+					I_MIN(shift.seq2, uids[uid_idx].seq2));
 				uids = array_get_modifiable(uids_arr,
 							    &uid_count);
 			}


More information about the dovecot-cvs mailing list