Monotone-Parent: 08e8d0fb761a61568f208c502269083b0b66bb25
Monotone-Revision: d5c71041bfdd88e4baae24bb7a81f91a5e480457 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-01-21T16:32:59 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
339d4b8e18
commit
afea348f67
|
@ -1,3 +1,10 @@
|
|||
2008-01-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* GCSFolderManager.m ([GCSFolderManager
|
||||
-baseTableNameWithUID:_uid]): the id was too long for the quick
|
||||
tables, we reduce the length of the increment string to 3
|
||||
characters instead of 8.
|
||||
|
||||
2008-01-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* GCSFolderManager.m ([GCSFolderManager -baseTableNameWithUID:]):
|
||||
|
|
|
@ -627,7 +627,8 @@ static NSCharacterSet *asciiAlphaNumericCS = nil;
|
|||
return [self folderForRecord:record];
|
||||
}
|
||||
|
||||
- (NSString *)baseTableNameWithUID:(NSString *)_uid {
|
||||
- (NSString *) baseTableNameWithUID: (NSString *) _uid
|
||||
{
|
||||
unichar currentChar;
|
||||
unsigned int count, max, done;
|
||||
NSMutableString *newUID;
|
||||
|
@ -649,8 +650,8 @@ static NSCharacterSet *asciiAlphaNumericCS = nil;
|
|||
}
|
||||
randInc++;
|
||||
|
||||
return [NSString stringWithFormat: @"%@%.8x%.8x",
|
||||
newUID, randInc, (unsigned int) rand()];
|
||||
return [NSString stringWithFormat: @"%@%.3x%.8x",
|
||||
newUID, randInc & 0xfff, (unsigned int) rand()];
|
||||
}
|
||||
|
||||
- (NSException *)createFolderOfType:(NSString *)_type
|
||||
|
|
Loading…
Reference in New Issue