Monotone-Parent: cd2989d3a11079dde73d3a4890b0976e1405ebaa

Monotone-Revision: 2cad87365f0a0c5651f8609b76b87ed5eeb351c4

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-19T01:25:04
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2012-07-19 01:25:04 +00:00
parent d067ddce43
commit 124f3f995e
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2012-07-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreDBMessage.m (-objectVersion): shift the
version number by 16 bits, instead of doing it in -save.
(-save): don t swap the bytes of the version number as it would
return a wrong change number and a wrong change key for DB objects.
2012-07-18 Ludovic Marcotte <lmarcotte@inverse.ca>
* SoObjects/Appointments/SOGoAppointmentObject.m

View File

@ -91,7 +91,7 @@
[(SOGoMAPIDBMessage *) sogoObject reloadIfNeeded];
versionNbr = [properties objectForKey: @"version"];
if (versionNbr)
objectVersion = [versionNbr unsignedLongLongValue];
objectVersion = [versionNbr unsignedLongLongValue] >> 16;
else
objectVersion = ULLONG_MAX;
@ -158,7 +158,7 @@
if ([attachmentKeys count] > 0)
[properties setObject: attachmentParts forKey: @"attachments"];
newVersion = exchange_globcnt ([[self context] getNewChangeNumber] >> 16);
newVersion = [[self context] getNewChangeNumber];
[properties setObject: [NSNumber numberWithUnsignedLongLong: newVersion]
forKey: @"version"];