MXS-2271 Monitor config name and instance name are parameters of createInstance()

Also adds/moves some comments from previous entrypoints. Name and module
are now constant fields.
This commit is contained in:
Esa Korhonen
2019-01-21 15:51:53 +02:00
parent de970e579e
commit f6cec41dd8
19 changed files with 75 additions and 63 deletions

View File

@ -26,7 +26,8 @@
#include <mysqld_error.h>
GRMon::GRMon()
GRMon::GRMon(const std::string& name, const std::string& module)
: MonitorWorkerSimple(name, module)
{
}
@ -34,9 +35,9 @@ GRMon::~GRMon()
{
}
GRMon* GRMon::create()
GRMon* GRMon::create(const std::string& name, const std::string& module)
{
return new GRMon();
return new GRMon(name, module);
}
bool GRMon::has_sufficient_permissions() const