[dovecot-cvs] dovecot/src/lib-storage/index index-sync.c,1.51,1.52
cras at dovecot.org
cras at dovecot.org
Sat Jan 7 02:17:54 EET 2006
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.74,
1.75 mail-index-lock.c, 1.48, 1.49 mail-index-private.h, 1.60,
1.61 mail-index.c, 1.216, 1.217 mail-transaction-log-append.c,
1.15, 1.16 mail-transaction-log.c, 1.103,
1.104 mail-transaction-log.h, 1.28, 1.29
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.49,1.50
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv18042/index
Modified Files:
index-sync.c
Log Message:
Crashfix to last keyword compare update
Index: index-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-sync.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- index-sync.c 6 Jan 2006 17:37:30 -0000 1.51
+++ index-sync.c 7 Jan 2006 00:17:52 -0000 1.52
@@ -276,6 +276,11 @@
const unsigned int *idx1, *idx2;
unsigned int i, j, count1, count2;
+ if (!array_is_created(k1))
+ return !array_is_created(k2) || array_count(k2) == 0;
+ if (!array_is_created(k2))
+ return FALSE;
+
/* The arrays may not be sorted, but they usually are. Optimize for
the assumption that they are */
idx1 = array_get(k1, &count1);
- Previous message: [dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.74,
1.75 mail-index-lock.c, 1.48, 1.49 mail-index-private.h, 1.60,
1.61 mail-index.c, 1.216, 1.217 mail-transaction-log-append.c,
1.15, 1.16 mail-transaction-log.c, 1.103,
1.104 mail-transaction-log.h, 1.28, 1.29
- Next message: [dovecot-cvs] dovecot/src/lib-index mail-index-lock.c,1.49,1.50
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list