You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make get_option() handle duplicate options in my_print_defaults output
get_option() was added by #53 to extract `socket` and `pid-file` from
my_print_defaults. However if a custom mysql configuration file has been
added, my_print_defaults returns duplicates (it merely lists all options
specified in any config file and doesn't de-dupe). In these cases, `ret`
would equal `/var/run/mysqld/mysqld.sock /var/lib/mysql/mysql.sock`,
causing:
`/entrypoint.sh: line 9: [: /var/run/mysqld/mysqld.sock: binary operator expected`
As such, get_option() should just return the last matching option found
in the my_print_defaults output - which should correspond to the one in
the custom configuration file (rather than say the global default).
Fixes#74.
0 commit comments