Skip to content

Commit

Permalink
Merge pull request #12 from joffrey92/master
Browse files Browse the repository at this point in the history
Fixes #11: Garbd does show as empty string in wsrep_incoming_addresses, which leads to glb parse error. Many thanks to jeoffrey92 for sed-fu.
  • Loading branch information
ayurchen committed May 6, 2014
2 parents cc928c8 + 55f39bf commit b13985b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ do
if [ $? -eq 0 ]
then
STATE=$(echo $RES | cut -d ' ' -f 2)
OTHERS=$(echo $RES | cut -d ' ' -f 4)
# Fix garbd issue that shows empty string in wsrep_incoming_addresses : Bug https://github.com/codership/glb/issues/11
OTHERS=$(echo $RES | cut -d ' ' -f 4 | sed -e 's/,,*/,/g' -e 's/^,//g' -e 's/,$//g')
# If wsrep_local_state variable was not found on the server, we assume it
# is a regular MySQL and is ready for connections (it accepted connection)
STATE=${STATE:-"4"}
Expand Down

0 comments on commit b13985b

Please sign in to comment.