• Sergey Vojtovich's avatar
    MDEV-7364 - mysqld --help --verbose prints random values for "debug" · db89dd3a
    Sergey Vojtovich authored
    getopt value pointer of "debug" variable was pointing to incorrect address:
    &global_system_variables. Runtime statements like SHOW VARIABLES materialize
    value from DBUG structures on demand, so they never access getopt value pointer.
    But mysqld --help --verbose loaded this value from &global_system_variables.
    
    Remove "debug" variable from mysqld --help --verbose output by setting value
    pointer to NULL.
    db89dd3a
sys_vars.h 73.6 KB