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 33cb080e16
commit cb6f70119d
3 changed files with 60 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);
}