jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacco van Weert" <1111softw...@gmail.com>
Subject Re: Datastore Garbage Collector and empty directories
Date Mon, 18 Feb 2008 14:59:56 GMT
On Feb 18, 2008 1:04 PM, Jukka Zitting <jukka.zitting@gmail.com> wrote:

> Hi,
>
> On Feb 18, 2008 11:09 AM, Jacco van Weert <1111software@gmail.com> wrote:
> > I am using JR 1.4 with the Datastore. The Garbage collector is called
> and
> > the not referenced data files correctly removed.
> > But the directory paths aren't removed, in time this will turn into a
> huge
> > tree of unsed empty directories.
> > Is there an way to get rid of those directories?
>
> As an immediate solution it should be safe to use a script or
> something to clear out empty directories in the data store. You might
> also want to file an improvement request to make the data store
> implementation automatically prune empty directories. Patches are also
> welcome. :-)
>
>
It was a nice reason to checkout jackrabbit and build it myself :-) (I got
snapshot-1.5)
It is a small code change (only 4 lines) to implement the automatic empty
directory removal (in
org.apache.jackrabbit.core.data.FileDataStore)

How do I proceed?.... improvement request?

Greetings,

  Jacco




>
> --
> -------------------------------------
> Jacco van Weert -- 1111software@gmail.com
> JCR Controller -- http://www.xs4all.nl/~weertj/jcr
> JeCARS -- http://jecars.sourceforge.net
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message