Bug 10399 - rebuild_zebra.pl should reset the indexes with -r even if zebraqueue empty
Summary: rebuild_zebra.pl should reset the indexes with -r even if zebraqueue empty
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Galen Charlton
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 13:08 UTC by Tomás Cohen Arazi
Modified: 2014-12-07 20:02 UTC (History)
1 user (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 10399 - rebuild_zebra.pl should reset the indexes with -r even if zebraqueue empty (2.13 KB, patch)
2013-06-04 13:22 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi 2013-06-04 13:08:13 UTC
Currently, the only way to get indexes reset is to run the zebraidx... init by hand on each database (authorities or biblios). This leads to several problems: ownership, permission, wrong paths, etc.
Comment 1 Tomás Cohen Arazi 2013-06-04 13:22:01 UTC
Created attachment 18639 [details] [review]
Bug 10399 - rebuild_zebra.pl should reset the indexes with -r even if zebraqueue empty

This patch add the reset_indexes sub to the rebuild_zebra.pl script. And changes
the scripts' logic to run it in case -r was passed and there are no records pending
on the zebraqueue table.

Regards
To+
Comment 2 Kyle M Hall 2013-06-07 13:28:42 UTC
Test plan please. I cannot find a situation that triggers the new sub! I tried  misc/migration_tools/rebuild_zebra.pl -b -v -r -s