MXS-1703: Turn MariaDB Monitor struct to class with public fields

Allows using std::string for strings. Also, cleanup.
This commit is contained in:
Esa Korhonen
2018-02-19 18:24:40 +02:00
parent 1de8f5ffdc
commit 8ef1385d1a
3 changed files with 61 additions and 65 deletions

View File

@ -1773,7 +1773,7 @@ void mon_process_state_changes(MXS_MONITOR *monitor, const char *script, uint64_
master_up = true;
}
if (script && (events & event))
if (script && *script && (events & event))
{
monitor_launch_script(monitor, ptr, script, monitor->script_timeout);
}