mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added a semi intelligible toString to VersionDescriptor. Added an interactive
console program for debugging. Made it so you can't snapshot a version if there's nothing to snapshot. Fixed inactive to active transition in OrphanReaper. Other odds and ends. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3132 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -180,7 +180,6 @@ class OrphanReaper implements Runnable
|
||||
@SuppressWarnings("unchecked")
|
||||
public void doBatch()
|
||||
{
|
||||
long start = System.currentTimeMillis();
|
||||
class HTxnCallback implements HibernateTxnCallback
|
||||
{
|
||||
public void perform(Session session)
|
||||
@@ -193,6 +192,7 @@ class OrphanReaper implements Runnable
|
||||
fActive = false;
|
||||
return;
|
||||
}
|
||||
fActive = true;
|
||||
for (AVMNode node : nodes)
|
||||
{
|
||||
// Save away the ancestor and merged from fields from this node.
|
||||
@@ -267,6 +267,5 @@ class OrphanReaper implements Runnable
|
||||
e.printStackTrace(System.err);
|
||||
// TODO Log this properly.
|
||||
}
|
||||
System.err.println("Batch took: " + (System.currentTimeMillis() - start) + "ms");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user