Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.
The following page has been changed by ThomasMueller:
http://wiki.apache.org/jackrabbit/DataStore
------------------------------------------------------------------------------
gc.deleteUnused();
}}}
- If multiple repositories use the same data store, the deleteUnused() method must not be
used. Instead, the process is:
+ The process above applies to a standalone repository. When clustered, the garbage collection
can be run from any cluster node.
+
+ If multiple distinct repositories use the same data store, the process is a bit different:
First, call gc.scan() on the first repository, then on the second and so on. At the end, call
gc.deleteUnused() on the first repository:
+
+ {{{
+ gc1.scan();
+ gc2.scan();
+ ...
+ gc1.deleteUnused();
+ }}}
+
+ An alternative is:
1. Write down the current time = X
1. Run gc.scan() on each repository
1. Manually delete files with last modified date older than X
+
== How to write a new data store implementation ==
|