NamedServerFilter: Add HINT_ROUTE_TO_ALL support

This was already supported by HintRouter. The tag for the MaxScale
config file is "->all". Also add note to Documentation and reformat
it a bit.
This commit is contained in:
Esa Korhonen
2017-04-03 11:24:43 +03:00
parent 259b0673a0
commit 1fb8cde5d8
3 changed files with 15 additions and 6 deletions

View File

@ -432,6 +432,11 @@ int RegexToServers::add_servers(string server_names, bool legacy_mode)
m_targets.push_back(names_arr[0]);
m_htype = HINT_ROUTE_TO_SLAVE;
}
else if (strcmp(names_arr[0], "->all") == 0)
{
m_targets.push_back(names_arr[0]);
m_htype = HINT_ROUTE_TO_ALL;
}
else
{
error = true;