[dovecot-cvs] dovecot/src/lib-index mail-cache.c, 1.29,
1.30 mail-transaction-log.c, 1.39, 1.40
cras at procontrol.fi
cras at procontrol.fi
Sun Jun 20 12:34:12 EEST 2004
Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv8434/lib-index
Modified Files:
mail-cache.c mail-transaction-log.c
Log Message:
cache file fixes
Index: mail-cache.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- mail-cache.c 20 Jun 2004 09:13:14 -0000 1.29
+++ mail-cache.c 20 Jun 2004 09:34:10 -0000 1.30
@@ -512,7 +512,7 @@
{
if (cache->hdr->file_seq != cache->index->hdr->cache_file_seq) {
if (mail_cache_lock(cache, TRUE) == 0) {
- *new_file_seq_r = cache->index->hdr->cache_file_seq;
+ *new_file_seq_r = cache->hdr->file_seq;
return TRUE;
}
}
Index: mail-transaction-log.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- mail-transaction-log.c 20 Jun 2004 09:13:14 -0000 1.39
+++ mail-transaction-log.c 20 Jun 2004 09:34:10 -0000 1.40
@@ -1043,8 +1043,9 @@
index = mail_index_view_get_index(view);
log = index->log;
- if (t->updates == NULL && t->cache_updates == NULL &&
- t->expunges == NULL && t->appends == NULL && !t->hdr_changed) {
+ if (t->updates == NULL && t->new_cache_file_seq == 0 &&
+ t->cache_updates == NULL && t->expunges == NULL &&
+ t->appends == NULL && !t->hdr_changed) {
/* nothing to append */
*log_file_seq_r = 0;
*log_file_offset_r = 0;
More information about the dovecot-cvs
mailing list