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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user