mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged BRANCHES/DEV/V3.3-BUG-FIX to HEAD:
22883: ALF-4800 - AVM - intermittent test failure (layered file delete) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22884 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -812,7 +812,8 @@ public class AVMSyncServiceImpl implements AVMSyncService
|
||||
}
|
||||
}
|
||||
|
||||
if (srcDesc.isDeleted() && (srcDesc.getDeletedType() == AVMNodeType.LAYERED_DIRECTORY))
|
||||
if (srcDesc.isDeleted() &&
|
||||
((srcDesc.getDeletedType() == AVMNodeType.LAYERED_DIRECTORY) || (srcDesc.getDeletedType() == AVMNodeType.LAYERED_FILE)))
|
||||
{
|
||||
Integer diff = compareLayeredCommonAncestor(common, srcDesc, dstDesc);
|
||||
if (diff != null)
|
||||
@@ -820,7 +821,8 @@ public class AVMSyncServiceImpl implements AVMSyncService
|
||||
return diff;
|
||||
}
|
||||
}
|
||||
else if (dstDesc.isDeleted() && (dstDesc.getDeletedType() == AVMNodeType.LAYERED_DIRECTORY))
|
||||
else if (dstDesc.isDeleted() &&
|
||||
((dstDesc.getDeletedType() == AVMNodeType.LAYERED_DIRECTORY) || (dstDesc.getDeletedType() == AVMNodeType.LAYERED_FILE)))
|
||||
{
|
||||
Integer diff = compareLayeredCommonAncestor(common, dstDesc, srcDesc);
|
||||
if (diff != null)
|
||||
@@ -1054,7 +1056,7 @@ public class AVMSyncServiceImpl implements AVMSyncService
|
||||
{
|
||||
diff = diffType;
|
||||
}
|
||||
else if (common.isLayeredFile())
|
||||
else if (common.isLayeredFile() || (compareAncNode.getType() == AVMNodeType.LAYERED_FILE))
|
||||
{
|
||||
// TODO review (alongside createSnapshot+COW)
|
||||
diff = compareLayeredCommonAncestor(common, compareAncNode.getId(), diffType);
|
||||
|
Reference in New Issue
Block a user