Merge "Enable load balancing to Galera nodes in Donor state"

This commit is contained in:
Zuul 2019-11-04 12:00:24 +00:00 committed by Gerrit Code Review
commit 77232dc87c

View File

@ -57,7 +57,11 @@ Synced)
Donor)
# enabling donor only if xtrabackup configured
SST_METHOD=`get_sst_method`
[[ $SST_METHOD =~ 'xtrabackup' ]] && CMD=$ENABLE_LB || CMD=$DISABLE_LB
if [[ $SST_METHOD =~ (mariabackup|xtrabackup) ]]; then
CMD=$ENABLE_LB
else
CMD=$DISABLE_LB
fi
;;
Undefined)
# shutting down database: do nothing