Bad integer comparisons in the "mysqld_safe" script
Bug #1742198 reported by
Chris Skretowski
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Fix Committed
|
Undecided
|
EvgeniyPatlan |
Bug Description
I'm just reporting bug, full credit for fix to vleclere
There is a bad integer comparisons in the "mysqld_safe" script.
Code:
What it is:
if [ $ret > 0 ]; then
What it should be:
if [ "$ret" -gt "0" ]; then
Bug can be reproduced by following this scenario:
- Start DB, make sure that cluster is in SYNC
- Force brutal shutdown of one node ("power off" or "reset")
- See logs. Without this fix DB will not start.
Thanks
Chris
Changed in percona-xtradb-cluster: | |
assignee: | nobody → EvgeniyPatlan (evgeniy-patlan) |
Changed in percona-xtradb-cluster: | |
status: | Fix Released → Fix Committed |
To post a comment you must log in.
Tested on latest Perocna XtraDB Cluster 5.7 on latest RHEL 7