Skip to content

Commit 4e6bd8b

Browse files
committed
Removed duplicate local declarations
1 parent 2f53458 commit 4e6bd8b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

assemble/bin/accumulo-cluster

+2-4
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,12 @@ function control_services() {
482482
local group
483483
local tserver
484484
local G
485+
local sserver
486+
local gc
485487
if [[ $ARG_ALL == 1 && $ARG_LOCAL == 0 && $operation == "stop" ]]; then
486488
echo "Stopping Accumulo cluster..."
487489
if ! isDebug; then
488490
# Stop all of the the Scan Server processes
489-
local sserver
490491
for group in $SSERVER_GROUPS; do
491492
echo "Executing $(green "$ARG_CMD") on $(purple scan servers) for group $(yellow "$group")"
492493
hosts="SSERVER_HOSTS_$group"
@@ -497,7 +498,6 @@ function control_services() {
497498
done
498499
done
499500
# Stop the GC processes, they scan and write to the metadata table
500-
local gc
501501
for gc in $GC_HOSTS; do
502502
if canRunOnHost "$gc"; then
503503
echo "Executing $(green "$ARG_CMD") on $(purple garbage collectors)"
@@ -579,7 +579,6 @@ function control_services() {
579579
done
580580
fi
581581

582-
local gc
583582
if [[ $ARG_ALL == 1 || $ARG_GC == 1 ]]; then
584583
for gc in $GC_HOSTS; do
585584
if canRunOnHost "$gc"; then
@@ -610,7 +609,6 @@ function control_services() {
610609
fi
611610

612611
local sserver_groups
613-
local sserver
614612
if [[ $ARG_ALL == 1 || $ARG_SSERVER == 1 ]]; then
615613
sserver_groups=$SSERVER_GROUPS
616614
if [[ -n $ARG_SSERVER_GROUP ]]; then

0 commit comments

Comments
 (0)