MXS-2329 Use durations in schema router

This commit is contained in:
Johan Wikman
2019-04-29 13:48:37 +03:00
parent ea243fd8ba
commit aa3057695b
3 changed files with 18 additions and 10 deletions

View File

@ -19,7 +19,7 @@ namespace schemarouter
{
Config::Config(MXS_CONFIG_PARAMETER* conf)
: refresh_min_interval(conf->get_integer("refresh_interval"))
: refresh_min_interval(conf->get_duration<std::chrono::seconds>("refresh_interval").count())
, refresh_databases(conf->get_bool("refresh_databases"))
, debug(conf->get_bool("debug"))
, ignore_regex(conf->get_compiled_regex("ignore_databases_regex", 0, NULL).release())