• Julius Goryavsky's avatar
    MDEV-25669: SST scripts should check all server groups in config files · 9e8e82cc
    Julius Goryavsky authored
    1) This commit implements reading all sections from configuration
    files while looking for the current value of any server variable,
    which were previously only read from the [mysqld.suffix] group and
    from [mysqld], but not from other groups such as [mariadb.suffix],
    [mariadb] or, for example, [server].
    
    2) This commit also fixes misrecognition of some parameters when
    parsing a command line containing a special marker for the end
    of the list of options ("--") or when short option names (such
    as "-s", "-a" and "-h arg") chained together (like a "-sah arg").
    Such parameters can be passed to the SST script in the list of
    arguments after "--mysqld-args" if the server is started with a
    complex set of options - this was revealed during manual testing
    of changes to read configuration files.
    
    3) The server-side preparation code for the "--mysqld-args"
    option list has also been simplified to make it easier to change
    in the future (if needed), and has been improved to properly
    handle the special backquote ("`") character in the argument
    values.
    9e8e82cc
wsrep_sst.cc 53.2 KB