]> git.koha-community.org Git - koha.git/commit
Bug 9049: Don't use shadow with rebuild_zebra -r
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 10 Nov 2012 12:51:22 +0000 (07:51 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 24 Apr 2013 07:27:30 +0000 (19:27 +1200)
commit065816de92d40f6f8f597b236bc3f118afcd1911
tree293ffcb6320619464bfbc0e00d22b8746a4e6ebe
parente27da4a9b5e0ae41885e93240bf2e2a025f4e4e5
Bug 9049: Don't use shadow with rebuild_zebra -r

Due to a limitation of Zebra, the register must be cleared *before*
doing shadow indexing if you want to reset the indexes. In light of
that, it does not make sense to do shadow indexing at all when
rebuild_zebra.pl is run with the -r switch. This patch makes -r (reset)
imply -n (no shadow).

To test:
1) Run `rebuild_zebra.pl -b -r -v -v -v`
2) Note that the script never runs the merge phase

Without the patch I see log lines refering to the shadow cache (enabling shadow spec=/home/koha/koha-dev/var/lib/zebradb/biblios/shadow:20G)
With the patch I don't see anything in the logs about shadow.  I do however see lines about merging.  I think it could just be a misunderstanding of the logs

Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Elliott Davis <elliott@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
misc/migration_tools/rebuild_zebra.pl