MXS-1725 Use session_set_response() in Cache

- session_set_response() made const correct
- set_response() function added to mxs::FilterSession; calls
  session_set_response().
- Cache uses set_response() for delivering the cache result
  to the client.
This commit is contained in:
Johan Wikman
2018-03-23 16:43:19 +02:00
parent 9fd64cf7ba
commit c08fe079bf
4 changed files with 16 additions and 7 deletions

View File

@ -1229,7 +1229,7 @@ bool session_remove_variable(MXS_SESSION* session,
return removed;
}
void session_set_response(MXS_SESSION *session, MXS_UPSTREAM *up, GWBUF *buffer)
void session_set_response(MXS_SESSION *session, const MXS_UPSTREAM *up, GWBUF *buffer)
{
// Valid arguments.
ss_dassert(session && up && buffer);