[
https://issues.apache.org/jira/browse/JCR-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552425
]
Thomas Mueller commented on JCR-1138:
-------------------------------------
With revision 604872, the code to run the data store garbage collection is:
GarbageCollector gc = ((SessionImpl)session).createDataStoreGarbageCollector();
gc.scan();
gc.stopScan();
gc.deleteUnused();
The garbage collector will iterate over all nodes in the repository and update
the last modified date. If all persistence managers implement the
IterablePersistenceManager interface, this mechanism will be used; if not, the
garbage collector will scan the repository using the JCR API starting from the
root node.
> Data store garbage collection
> -----------------------------
>
> Key: JCR-1138
> URL: https://issues.apache.org/jira/browse/JCR-1138
> Project: Jackrabbit
> Issue Type: Improvement
> Components: jackrabbit-core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Blocker
> Fix For: 1.4
>
>
> Currently the data store garbage collection needs to be run manually. It
> should be simpler to use (maybe tool based), or automatic.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.