MXS-1220: Make the parameters of the diagnostic entry points const
The diagnostic entry points should not modify the state of the object being diagnosed.
This commit is contained in:

committed by
Markus Mäkelä

parent
c17c451fb5
commit
076599ee5e
@ -173,9 +173,9 @@ public:
|
||||
return rv;
|
||||
}
|
||||
|
||||
static json_t* diagnostics(MXS_ROUTER* pInstance)
|
||||
static json_t* diagnostics(const MXS_ROUTER* pInstance)
|
||||
{
|
||||
RouterType* pRouter = static_cast<RouterType*>(pInstance);
|
||||
const RouterType* pRouter = static_cast<const RouterType*>(pInstance);
|
||||
|
||||
json_t* rval = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user