mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Moved the tracking of newly introduced nodes into its own table. Simplifies things a bit.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3320 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -209,6 +209,7 @@ public class OrphanReaper implements Runnable
|
||||
mergedFrom = mlink.getMfrom();
|
||||
AVMContext.fgInstance.fMergeLinkDAO.delete(mlink);
|
||||
}
|
||||
AVMContext.fgInstance.fAVMNodeDAO.flush();
|
||||
// Get all the nodes that have this node as ancestor.
|
||||
List<HistoryLink> links = AVMContext.fgInstance.fHistoryLinkDAO.getByAncestor(node);
|
||||
for (HistoryLink link : links)
|
||||
@@ -228,6 +229,11 @@ public class OrphanReaper implements Runnable
|
||||
link.getMto().setMergedFrom(ancestor);
|
||||
AVMContext.fgInstance.fMergeLinkDAO.delete(link);
|
||||
}
|
||||
NewInRepository newInRep = AVMContext.fgInstance.fNewInRepositoryDAO.getByNode(node);
|
||||
if (newInRep != null)
|
||||
{
|
||||
AVMContext.fgInstance.fNewInRepositoryDAO.delete(newInRep);
|
||||
}
|
||||
// TODO What to do about such Hibernate wackiness: session.flush();
|
||||
// TODO More of the same: node = AVMNodeUnwrapper.Unwrap(node);
|
||||
// Extra work for directories.
|
||||
|
Reference in New Issue
Block a user