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
@ -302,7 +302,7 @@ SchemaRouterSession* SchemaRouter::newSession(MXS_SESSION* pSession)
|
||||
return rval;
|
||||
}
|
||||
|
||||
json_t* SchemaRouter::diagnostics()
|
||||
json_t* SchemaRouter::diagnostics() const
|
||||
{
|
||||
double sescmd_pct = m_stats.n_sescmd != 0 ?
|
||||
100.0 * ((double)m_stats.n_sescmd / (double)m_stats.n_queries) :
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
~SchemaRouter();
|
||||
static SchemaRouter* create(SERVICE* pService, char** pzOptions);
|
||||
SchemaRouterSession* newSession(MXS_SESSION* pSession);
|
||||
json_t* diagnostics();
|
||||
json_t* diagnostics() const;
|
||||
uint64_t getCapabilities();
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user