[dovecot-cvs] dovecot/src/lib-index mail-index-transaction.c, 1.48,
1.49
cras at dovecot.org
cras at dovecot.org
Sun Jan 23 00:57:04 EET 2005
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv24488
Modified Files:
mail-index-transaction.c
Log Message:
and more fixing..
Index: mail-index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-transaction.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- mail-index-transaction.c 22 Jan 2005 22:52:20 -0000 1.48
+++ mail-index-transaction.c 22 Jan 2005 22:57:02 -0000 1.49
@@ -411,7 +411,7 @@
/* find the first update with either overlapping range,
or the update which will come after our insert */
- idx = 0;
+ idx = size;
while (left_idx < right_idx) {
idx = (left_idx + right_idx) / 2;
@@ -427,6 +427,7 @@
/* overlapping ranges, split/merge them */
i_assert(idx == 0 || updates[idx-1].uid2 < u.uid1);
+ i_assert(idx == size || updates[idx].uid2 >= u.uid1);
for (; idx < size && u.uid2 >= updates[idx].uid1; idx++) {
if (u.uid1 != updates[idx].uid1 &&
More information about the dovecot-cvs
mailing list