Use service capabilities

Now the capabilities of routers and filters alike will be honoured.
This commit is contained in:
Johan Wikman
2016-10-21 21:24:53 +03:00
parent bd18a7d8ed
commit 28ecba4022
2 changed files with 3 additions and 3 deletions

View File

@ -837,8 +837,8 @@ gw_read_normal_data(DCB *dcb, GWBUF *read_buffer, int nbytes_read)
return 1;
}
/** Ask what type of input the router expects */
capabilities = session->service->router->getCapabilities();
/** Ask what type of input the router/filter chain expects */
capabilities = service_get_capabilities(session->service);
/** Update the current protocol command being executed */
if (!process_client_commands(dcb, nbytes_read, &read_buffer))