Skip to content

Commit

Permalink
Small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshvs02 committed Dec 14, 2016
1 parent c3b9692 commit 46d6ce5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions proxysql-admin
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,6 @@ if [[ -z "$GALERA_CHECK_INTERVAL" ]]; then
GALERA_CHECK_INTERVAL=3000
fi

if [[ -z "$WRITE_HOSTGROUP_ID" ]]; then
WRITE_HOSTGROUP_ID=10
fi

if [[ -z "$READ_HOSTGROUP_ID" ]]; then
READ_HOSTGROUP_ID=11
fi

if [[ -z "$RW_MODE" ]]; then
RW_MODE="loadbal"
else
Expand All @@ -250,6 +242,14 @@ else
fi
fi

if [ $RW_MODE == "loadbal" ]; then
WRITE_HOSTGROUP_ID=10
READ_HOSTGROUP_ID=10
elif [ $RW_MODE == "singlewrite" ]; then
WRITE_HOSTGROUP_ID=10
READ_HOSTGROUP_ID=11
fi

PIDFILE=/tmp/pxc-proxysql-monitor.pid

proxysql_exec() {
Expand Down

0 comments on commit 46d6ce5

Please sign in to comment.