MXS-1848 Introduce a specific monitor type
Instead of using void there's now a MXS_SPECIFIC_MONITOR struct from which monitor specific types can be derived. This change does not bring about other benefits than a bit of clarity but this is the first step in clearing up the monitor API.
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
/**
|
||||
* The instance of a Group Replication Monitor
|
||||
*/
|
||||
struct GRMon
|
||||
struct GRMon : public MXS_SPECIFIC_MONITOR
|
||||
{
|
||||
GRMon(const GRMon&);
|
||||
GRMon& operator&(const GRMon&);
|
||||
@ -99,7 +99,7 @@ void GRMon::stop()
|
||||
*
|
||||
* @return A handle to use when interacting with the monitor
|
||||
*/
|
||||
static void *
|
||||
static MXS_SPECIFIC_MONITOR *
|
||||
startMonitor(MXS_MONITOR *mon, const MXS_CONFIG_PARAMETER *params)
|
||||
{
|
||||
return GRMon::create(mon, params);
|
||||
|
||||
Reference in New Issue
Block a user