mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 02:34:19 +00:00
Fix wsrep_cluster_size check.
This commit is contained in:
@@ -294,9 +294,9 @@ case $opt in
|
||||
exit_status=$((exit_status | $?))
|
||||
|
||||
if [ "${2:-""}" = "cluster" ]; then
|
||||
echo "Checking that the cluster size is correct... "
|
||||
size=$(/tmp/12345/use -ss -e "SHOW STATUS LIKE 'wsrep_cluster_size'" 2>/dev/null)
|
||||
if [ "${size:-""}" -ne 3 ]; then
|
||||
echo -n "Checking that the cluster size is correct... "
|
||||
size=$(/tmp/12345/use -ss -e "SHOW STATUS LIKE 'wsrep_cluster_size'" | awk '{print $2}')
|
||||
if [ ${size:-0} -ne 3 ]; then
|
||||
echo "FAILED"
|
||||
else
|
||||
echo "OK"
|
||||
|
Reference in New Issue
Block a user