[Cyrus-CVS] src/cyrus/imap by murch
Bron Gondwana
brong at fastmail.fm
Thu Dec 13 18:46:30 EST 2007
On Thu, Dec 13, 2007 at 01:30:58PM -0500, murch at andrew.cmu.edu wrote:
> Update of /afs/andrew/system/cvs/src/cyrus/imap
> In directory unix31.andrew.cmu.edu:/var/tmp/cvs-serv10332/imap
>
> Modified Files:
> Tag: cyrus-imapd-2_4
> version.h
> Log Message:
> go back to version 2.4.0 since we haven't made a release yet
If you're getting close to releasing 2.4, can I ask that at least
the following be added - even if it's not being used yet. Save
doing yet anoother index format upgrade soon afterwards!
Thanks,
Bron ( I'll try to get you a proper crc32 patch in time though )
@@ -241,9 +244,11 @@
#define OFFSET_MESSAGE_GUID OFFSET_CACHE_VERSION+sizeof(bit32)
#define OFFSET_MODSEQ_64 (OFFSET_MESSAGE_GUID+MESSAGE_GUID_SIZE) /* CONDSTORE (64-bit modseq) */
#define OFFSET_MODSEQ (OFFSET_MODSEQ_64+sizeof(bit32)) /* CONDSTORE (32-bit modseq) */
+#define OFFSET_CACHE_CRC32 (OFFSET_MODSEQ+sizeof(bit32)) /* CRC32 of the entire cache record */
+#define OFFSET_RECORD_CRC32 (OFFSET_CACHE_CRC32+sizeof(bit32)) /* CRC32 of all the preceeding bytes */
#define INDEX_HEADER_SIZE (OFFSET_SPARE4+sizeof(bit32))
-#define INDEX_RECORD_SIZE (OFFSET_MODSEQ+sizeof(bit32))
+#define INDEX_RECORD_SIZE (OFFSET_RECORD_CRC32+sizeof(bit32))
/* Number of fields in an individual message's cache record */
#define NUM_CACHE_FIELDS 10
More information about the Cyrus-devel
mailing list