Turning off flatten after submit for now as flatten is buggy.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3906 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-24 14:21:53 +00:00
parent 07e6e37300
commit e843fd0d8f
2 changed files with 13 additions and 2 deletions

View File

@@ -599,7 +599,7 @@ public class AVMSyncServiceImpl implements AVMSyncService
{
throw new AVMNotFoundException("Not found: " + layerPath);
}
AVMNodeDescriptor underlyingNode = fAVMService.lookup(-1, underlyingPath);
AVMNodeDescriptor underlyingNode = fAVMService.lookup(-1, underlyingPath, true);
if (underlyingNode == null)
{
throw new AVMNotFoundException("Not found: " + underlyingPath);
@@ -644,14 +644,17 @@ public class AVMSyncServiceImpl implements AVMSyncService
{
AVMNodeDescriptor topNode = layerListing.get(name);
AVMNodeDescriptor bottomNode = underListing.get(name);
fgLogger.error("Trying to flatten out: " + name);
if (bottomNode == null)
{
flattened = false;
continue;
}
// We've found an identity so flatten it.
if (topNode.getId() == bottomNode.getId())
{
fAVMRepository.flatten(layer, name);
fgLogger.error("Identity flattened: " + name);
}
else
{
@@ -659,6 +662,7 @@ public class AVMSyncServiceImpl implements AVMSyncService
if (flatten(topNode, bottomNode))
{
fAVMRepository.flatten(layer, name);
fgLogger.error("Recursively flattened: " + name);
}
else
{
@@ -706,5 +710,6 @@ public class AVMSyncServiceImpl implements AVMSyncService
}
mkdirs(pathParts[0]);
fAVMService.createDirectory(pathParts[0], pathParts[1]);
fgLogger.error("mkdir " + pathParts[0] + " " + pathParts[1]);
}
}