]> git.koha-community.org Git - koha.git/commit
Bug 15113: koha-rebuild-zebra should check USE_INDEXER_DAEMON and skip if enabled
authorTomas Cohen Arazi <tomascohen@unc.edu.ar>
Fri, 1 Apr 2016 18:30:26 +0000 (15:30 -0300)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 21 Apr 2016 07:43:47 +0000 (09:43 +0200)
commit67dd96545bf8fdabdc98428438cbd92a5ae33c9f
tree2c9f538502a54c9b645fe04f96b9850725f1b84f
parent47ebb4ffb1869b52f1c011e3a6b236b85b0e51ab
Bug 15113: koha-rebuild-zebra should check USE_INDEXER_DAEMON and skip if enabled

This patch changes the behaviour of the koha-rebuild-zebra script in the following way:

USE_INDEXER_DAEMON=no
- Keeps the current behaviour

USE_INDEXER_DAEMON=yes
- It skips incremental indexing to avoid races.

Caveats:
- A --force option is introduced for useing in a specific situtation that might need it
 (i.e. the administrator knows what he's doing).
- If --full is passed, the reindexing is not skipped.

The documentation files and messages are adjusted accordingly.

This patch should help users that want to use the indexing daemon, in which case they wouldn't need
to change their default 5 min cronjob (it will be just skipped). Ultimately, koha-common could have
USE_INDEXER_DAEMON = yes by default, but that's subject for another bug report.

To test:
- Play with the different option switches and USE_INDEXER_DAEMON
- Things work as expected
- Sign off

Regards

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as expected

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Your Full Name <your_email>
(cherry picked from commit 997ad166c6ea53d47e3e15e7720d63da9f3b0a80)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
debian/docs/koha-rebuild-zebra.xml
debian/scripts/koha-rebuild-zebra