Fixed BM client to generate folder paths correctly

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6849 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-09-21 10:07:25 +00:00
parent d145180099
commit 0bf9cb4cd7

View File

@@ -51,7 +51,7 @@ public class LoaderUploadThread extends AbstractLoaderThread
static
{
CacheManager cacheManager = new CacheManager();
Cache cache = new Cache("LoaderUploadThread-PathCache", 10000, false, false, 300, 300);
Cache cache = new Cache("LoaderUploadThread-PathCache", 100000, false, false, 300, 300);
cacheManager.addCache(cache);
pathCache = new EhCacheAdapter<String, NodeRef>();
@@ -81,7 +81,7 @@ public class LoaderUploadThread extends AbstractLoaderThread
// Iterate down the path, checking the cache and populating it as necessary
List<String> currentPath = new ArrayList<String>();
NodeRef currentParentNodeRef = workingRootNodeRef;
for (String pathElement : currentPath)
for (String pathElement : folderPath)
{
currentPath.add(pathElement);
String key = currentPath.toString();