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
@ -585,7 +585,7 @@ int FilterSession::clientReply(GWBUF* pPacket)
|
||||
return m_up.clientReply(pPacket);
|
||||
}
|
||||
|
||||
json_t* FilterSession::diagnostics()
|
||||
json_t* FilterSession::diagnostics() const
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -109,7 +109,7 @@ void usersPrint(const USERS *users)
|
||||
hashtable_stats(users->data);
|
||||
}
|
||||
|
||||
json_t* users_default_diagnostic(SERV_LISTENER *port)
|
||||
json_t* users_default_diagnostic(const SERV_LISTENER *port)
|
||||
{
|
||||
json_t* rval = json_array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user