Monotone-Parent: 5b4c993653702d15ad66f63a1c94781ddd2e36aa

Monotone-Revision: 3d2df4a4cd0472c967808f3f52f6cde1831d2d1a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-13T21:48:54
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-07-13 21:48:54 +00:00
parent 53d65fddb8
commit 02c133af94
4 changed files with 2 additions and 86 deletions
-47
View File
@@ -982,53 +982,6 @@ _prepareContextClass (struct mapistore_context *newMemCtx,
return rc;
}
- (int) releaseRecordWithFMID: (uint64_t) fmid
ofTableType: (uint8_t) tableType
{
NSNumber *fidKey;
MAPIStoreObject *child;
NSUInteger retainCount;
int rc = MAPISTORE_SUCCESS;
if (tableType != MAPISTORE_FOLDER_TABLE)
{
[self errorWithFormat: @"%s: value of tableType not handled: %d",
__FUNCTION__, tableType];
[self logWithFormat: @" fmid: 0x%.16x tableType: %d", fmid, tableType];
[NSException raise: @"MAPIStoreAPIException"
format: @"unsupported object type"];
rc = MAPISTORE_ERR_INVALID_PARAMETER;
}
if (rc == MAPISTORE_SUCCESS)
{
fidKey = [NSNumber numberWithUnsignedLongLong: fmid];
child = [folders objectForKey: fidKey];
if (child)
{
retainCount = [child mapiRetainCount];
if (retainCount == 0)
{
[self logWithFormat: @"child with mid %.16x successfully removed"
@" from child cache",
fmid];
[folders removeObjectForKey: fidKey];
}
else
[child setMAPIRetainCount: retainCount - 1];
}
else
{
[self warnWithFormat: @"child with mid %.16x not found"
@" in child cache", fmid];
rc = MAPISTORE_ERR_NOT_FOUND;
}
}
return rc;
}
/* utils */
- (NSString *) extractChildNameFromURL: (NSString *) objectURL