Bug 22892: Remove warning from rebuild_es if --processes not passed
commit9bc386a98fa51617ef927d4133ae310e17676dd5
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 13 May 2019 00:46:58 +0000 (12 19:46 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 15 May 2019 12:10:53 +0000 (15 12:10 +0000)
treed61f4f4e442dcbbaa0f60142141c357dd57adf70
parentf00d909220ebde5162335e255e4ba938a9563bff
Bug 22892: Remove warning from rebuild_es if --processes not passed

Use of uninitialized value $processes in numeric lt (<) at
misc/search_tools/rebuild_elasticsearch.pl line 199.

We want the number of processes to be set to 1 by default, and then
assign it to $slice_count

Test plan:
Run the script with and without --processes and confirm that the warning
went away.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
misc/search_tools/rebuild_elasticsearch.pl