[dovecot-cvs] dovecot/src/lib-index mail-cache-compress.c, 1.43, 1.44 mail-cache-private.h, 1.32, 1.33 mail-cache.c, 1.87, 1.88
tss at dovecot.org
tss at dovecot.org
Fri Oct 13 16:33:06 UTC 2006
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c, 1.59.2.4, 1.59.2.5 index-mail.c, 1.93.2.5, 1.93.2.6 index-mail.h, 1.37.2.1, 1.37.2.2
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c, 1.68, 1.69 index-mail.c, 1.109, 1.110 index-mail.h, 1.43, 1.44
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv18788/lib-index
Modified Files:
mail-cache-compress.c mail-cache-private.h mail-cache.c
Log Message:
Don't use time_t anymore in cache file. uint32_t is large enough and makes
cache files compatible between 32bit and 64bit systems.
Index: mail-cache-compress.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-compress.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- mail-cache-compress.c 28 Jun 2006 13:10:38 -0000 1.43
+++ mail-cache-compress.c 13 Oct 2006 15:33:03 -0000 1.44
@@ -148,7 +148,6 @@
memset(&hdr, 0, sizeof(hdr));
hdr.version = MAIL_CACHE_VERSION;
hdr.compat_sizeof_uoff_t = sizeof(uoff_t);
- hdr.compat_sizeof_time_t = sizeof(time_t);
hdr.indexid = idx_hdr->indexid;
hdr.file_seq = get_next_file_seq(cache, view);
o_stream_send(output, &hdr, sizeof(hdr));
Index: mail-cache-private.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache-private.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- mail-cache-private.h 13 Oct 2006 15:19:55 -0000 1.32
+++ mail-cache-private.h 13 Oct 2006 15:33:03 -0000 1.33
@@ -44,8 +44,7 @@
compatibility. */
uint8_t version;
uint8_t compat_sizeof_uoff_t;
- uint8_t compat_sizeof_time_t;
- uint8_t unused;
+ uint8_t unused[2];
uint32_t indexid;
uint32_t file_seq;
Index: mail-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- mail-cache.c 13 Oct 2006 15:19:55 -0000 1.87
+++ mail-cache.c 13 Oct 2006 15:33:03 -0000 1.88
@@ -128,18 +128,9 @@
/* version changed - upgrade silently */
return FALSE;
}
- if (hdr->compat_sizeof_uoff_t != sizeof(uoff_t) ||
- hdr->compat_sizeof_time_t != sizeof(time_t)) {
- if (hdr->compat_sizeof_uoff_t == 0 &&
- hdr->compat_sizeof_time_t == 0) {
- /* FIXME: keep backwards compatibility for a while.
- set hdr_modified=TRUE so header gets fixed the next
- time cache is locked. */
- cache->hdr_modified = TRUE;
- } else {
- /* architecture change - handle silently(?) */
- return FALSE;
- }
+ if (hdr->compat_sizeof_uoff_t != sizeof(uoff_t)) {
+ /* architecture change - handle silently(?) */
+ return FALSE;
}
if (cache->hdr->indexid != cache->index->indexid) {
@@ -502,10 +493,6 @@
}
if (cache->hdr_modified) {
- /* FIXME: for backwards compatibility - keep them for a while */
- cache->hdr_copy.compat_sizeof_uoff_t = sizeof(uoff_t);
- cache->hdr_copy.compat_sizeof_time_t = sizeof(time_t);
-
cache->hdr_modified = FALSE;
if (mail_cache_write(cache, &cache->hdr_copy,
sizeof(cache->hdr_copy), 0) < 0)
- Previous message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c, 1.59.2.4, 1.59.2.5 index-mail.c, 1.93.2.5, 1.93.2.6 index-mail.h, 1.37.2.1, 1.37.2.2
- Next message: [dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c, 1.68, 1.69 index-mail.c, 1.109, 1.110 index-mail.h, 1.43, 1.44
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list