mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Garbage collector was a bit over-zealous in removing content files.
It's better now. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4009 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -315,15 +315,16 @@ public class OrphanReaper implements Runnable
|
|||||||
// First get rid of all child entries for the node.
|
// First get rid of all child entries for the node.
|
||||||
AVMDAOs.Instance().fChildEntryDAO.deleteByParent(node);
|
AVMDAOs.Instance().fChildEntryDAO.deleteByParent(node);
|
||||||
}
|
}
|
||||||
else if (node.getType() == AVMNodeType.PLAIN_FILE)
|
// This is not on, since content urls can be shared.
|
||||||
{
|
// else if (node.getType() == AVMNodeType.PLAIN_FILE)
|
||||||
PlainFileNode file = (PlainFileNode)node;
|
// {
|
||||||
String url = file.getContentData(null).getContentUrl();
|
// PlainFileNode file = (PlainFileNode)node;
|
||||||
if (url != null)
|
// String url = file.getContentData(null).getContentUrl();
|
||||||
{
|
// if (url != null)
|
||||||
RawServices.Instance().getContentStore().delete(url);
|
// {
|
||||||
}
|
// RawServices.Instance().getContentStore().delete(url);
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
AVMDAOs.Instance().fAVMNodeDAO.delete(node);
|
AVMDAOs.Instance().fAVMNodeDAO.delete(node);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user