MXS-1220: Limit /sessions/ to client sessions
The /sessions/ resource should only contain client sessions as the information is about the sessions, not the connections themselves.
This commit is contained in:
@ -1156,8 +1156,12 @@ struct SessionListData
|
|||||||
|
|
||||||
bool seslist_cb(DCB* dcb, void* data)
|
bool seslist_cb(DCB* dcb, void* data)
|
||||||
{
|
{
|
||||||
SessionListData* d = (SessionListData*)data;
|
if (dcb->dcb_role == DCB_ROLE_CLIENT_HANDLER)
|
||||||
json_array_append_new(d->json, session_json_data(dcb->session, d->host));
|
{
|
||||||
|
SessionListData* d = (SessionListData*)data;
|
||||||
|
json_array_append_new(d->json, session_json_data(dcb->session, d->host));
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user