]> source.dussan.org Git - gitblit.git/commit
Use versioned index directories for repository indices.
authorFlorian Zschocke <florian.zschocke@devolo.de>
Sun, 5 Mar 2017 16:11:50 +0000 (17:11 +0100)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Sun, 5 Mar 2017 19:27:37 +0000 (20:27 +0100)
commitf44f45a15e10a87bcb62a6a3a1bb0f7cbc282478
tree9ce74c96ef2985a6f2d7d4e1472c2466e26e2f72
parent71a27ddc781e0c2a684f747c794f8948c65cbf5c
Use versioned index directories for repository indices.

Change from the index version of a repository index being stored in a config
file to also using index directories with the version in the name. For that,
`LuceneRepoIndexStore` is added, which adds the fixed `lucene` part to the path.
It also gives out the location of the `lucene.conf` file, which is now stored in
the index directory. This way it is automatically deleted when the directory is
deleted.

I believe that it should also provide means to store branch aliases and tips,
i.e. hide the config file completely. But this isn't implemented with this
commit, the `LuceneService` is still aware that a config file is used.
src/main/java/com/gitblit/service/LuceneRepoIndexStore.java [new file with mode: 0644]
src/main/java/com/gitblit/service/LuceneService.java
src/test/java/com/gitblit/service/LuceneRepoIndexStoreTest.java [new file with mode: 0644]