mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
61167: Removed in-txn exception absorbtion and replaced with a node exists check git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62397 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -489,19 +489,17 @@ public class NodeArchiveServiceImpl implements NodeArchiveService
|
|||||||
public void purgeArchivedNode(final NodeRef archivedNodeRef)
|
public void purgeArchivedNode(final NodeRef archivedNodeRef)
|
||||||
{
|
{
|
||||||
RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
|
RetryingTransactionHelper txnHelper = transactionService.getRetryingTransactionHelper();
|
||||||
RetryingTransactionCallback<Object> deleteCallback = new RetryingTransactionCallback<Object>()
|
RetryingTransactionCallback<Void> deleteCallback = new RetryingTransactionCallback<Void>()
|
||||||
{
|
{
|
||||||
public Object execute() throws Exception
|
public Void execute() throws Exception
|
||||||
{
|
{
|
||||||
try
|
if (!nodeService.exists(archivedNodeRef))
|
||||||
{
|
{
|
||||||
|
// Node has disappeared
|
||||||
|
return null;
|
||||||
|
}
|
||||||
invokeBeforePurgeNode(archivedNodeRef);
|
invokeBeforePurgeNode(archivedNodeRef);
|
||||||
nodeService.deleteNode(archivedNodeRef);
|
nodeService.deleteNode(archivedNodeRef);
|
||||||
}
|
|
||||||
catch (InvalidNodeRefException e)
|
|
||||||
{
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user