Bug 26448: Don't overwrite commit parameter passed to koha-elasticsearch
The "--commit" or "-c" parameter was incorrectly not used if it was
passed to the koha-elasticsearch program.
To test:
1) Before patch notice koha-elasticsearch --rebuild --commit 1 -v <instance>
only commits every 5000 records
2) Apply patch and notice the above command commits every 1 record
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 8ede5cd3f9)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
14c1d32255
commit
26788ebcf4
|
|
@ -98,7 +98,7 @@ run_rebuild_elasticsearch()
|
|||
if [ "${clo_processes}" > 0 ]; then
|
||||
processes=${clo_processes}
|
||||
fi
|
||||
rebuild_opts="--processes ${processes}"
|
||||
rebuild_opts="${rebuild_opts} --processes ${processes}"
|
||||
|
||||
if [ "${delete}" = "yes" ]; then
|
||||
rebuild_opts="${rebuild_opts} -d"
|
||||
|
|
|
|||
Loading…
Reference in New Issue