Refs codership/mysql-wsrep#143 . Account for the case where the SST password is empty

This commit is contained in:
Philip Stoev 2015-06-08 01:43:27 -07:00 committed by Nirbhay Choubey
parent 86ee30cea9
commit bc796c29b3

View File

@ -144,7 +144,7 @@ if ! wsrep_auth_not_set
then
readonly AUTH_VEC=(${WSREP_SST_OPT_AUTH//:/ })
[ -n "${AUTH_VEC[0]}" ] && WSREP_SST_OPT_USER="${AUTH_VEC[0]}"
[ -n "${AUTH_VEC[1]}" ] && WSREP_SST_OPT_PSWD="${AUTH_VEC[1]}"
[ -n "${AUTH_VEC[1]:-}" ] && WSREP_SST_OPT_PSWD="${AUTH_VEC[1]:-}"
fi
readonly WSREP_SST_OPT_USER
readonly WSREP_SST_OPT_PSWD