From ec1771af4d669f4ebad010ef43a6a33125d0f327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Mon, 14 Sep 2020 10:27:24 +0300 Subject: [PATCH] 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 only commits every 5000 records 2) Apply patch and notice the above command commits every 1 record Signed-off-by: Nick Clemens --- debian/scripts/koha-elasticsearch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/scripts/koha-elasticsearch b/debian/scripts/koha-elasticsearch index 70a24d243b..a5428175ac 100755 --- a/debian/scripts/koha-elasticsearch +++ b/debian/scripts/koha-elasticsearch @@ -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" -- 2.11.0