From 71b9772546b83df5bd671ad46a9d10155da596af Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 14 Feb 2013 15:22:48 -0500 Subject: [PATCH] Ensure we hit the cache with hex-formatted keys. --- OpenChange/MAPIStoreMailMessageTable.m | 1 + OpenChange/MAPIStoreSOGo.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenChange/MAPIStoreMailMessageTable.m b/OpenChange/MAPIStoreMailMessageTable.m index 3933b62db..eb40f6739 100644 --- a/OpenChange/MAPIStoreMailMessageTable.m +++ b/OpenChange/MAPIStoreMailMessageTable.m @@ -155,6 +155,7 @@ static Class MAPIStoreMailMessageK, NSDataK, NSStringK; case PidTagChangeNumber: { + value = [NSString stringWithFormat: @"0x%.16llx", [value unsignedLongLongValue]]; modseq = [(MAPIStoreMailFolder *) container modseqFromMessageChangeNumber: value]; [self logWithFormat: @"change number from oxcfxics: %.16lx", [value unsignedLongLongValue]]; diff --git a/OpenChange/MAPIStoreSOGo.m b/OpenChange/MAPIStoreSOGo.m index c9e24b715..399a215c7 100644 --- a/OpenChange/MAPIStoreSOGo.m +++ b/OpenChange/MAPIStoreSOGo.m @@ -1229,7 +1229,7 @@ sogo_table_set_restrictions (void *table_object, struct mapi_SRestriction *restr GSRegisterCurrentThread (); pool = [NSAutoreleasePool new]; [table setRestrictions: restrictions]; - [table cleanupCaches]; + //[table cleanupCaches]; rc = MAPISTORE_SUCCESS; *table_status = TBLSTAT_COMPLETE; [pool release];