Monotone-Parent: abf0593bed546a2a9f1b2e7b96945af8f2dd4bee
Monotone-Revision: 513390dbae4bee1883ba285606980dafededd7e9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-04-28T17:57:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
1a62535756
commit
31139cacb0
|
@ -1,3 +1,9 @@
|
||||||
|
2010-04-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* Tools/SOGoToolBackup.m (-proceed): we empty the autorelease pool
|
||||||
|
every 10 iterations to avoid an excess of unreleased LDAP
|
||||||
|
connections.
|
||||||
|
|
||||||
2010-04-26 Ludovic Marcotte <lmarcotte@inverse.ca>
|
2010-04-26 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||||
|
|
||||||
* Modified all folder/ACL templates in order
|
* Modified all folder/ACL templates in order
|
||||||
|
|
|
@ -381,14 +381,23 @@
|
||||||
|
|
||||||
- (BOOL) proceed
|
- (BOOL) proceed
|
||||||
{
|
{
|
||||||
|
NSAutoreleasePool *pool;
|
||||||
int count, max;
|
int count, max;
|
||||||
BOOL rc;
|
BOOL rc;
|
||||||
|
|
||||||
rc = YES;
|
rc = YES;
|
||||||
|
|
||||||
|
pool = [NSAutoreleasePool new];
|
||||||
|
|
||||||
max = [userIDs count];
|
max = [userIDs count];
|
||||||
for (count = 0; rc && count < max; count++)
|
for (count = 0; rc && count < max; count++)
|
||||||
rc = [self exportUser: [userIDs objectAtIndex: count]];
|
{
|
||||||
|
rc = [self exportUser: [userIDs objectAtIndex: count]];
|
||||||
|
if ((count % 10) == 0)
|
||||||
|
[pool emptyPool];
|
||||||
|
}
|
||||||
|
|
||||||
|
[pool release];
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue