diff --git a/lib/ClickHouse_Server.cpp b/lib/ClickHouse_Server.cpp index 40096c2e8..ab63741b8 100644 --- a/lib/ClickHouse_Server.cpp +++ b/lib/ClickHouse_Server.cpp @@ -1941,8 +1941,8 @@ bool ClickHouse_Session::init() { bool ret=false; char *hostname = NULL; char *port = NULL; - hostname = GloClickHouseServer->get_variable(hostname); - port = GloClickHouseServer->get_variable(port); + hostname = GloClickHouseServer->get_variable("hostname"); + port = GloClickHouseServer->get_variable("port"); try { co.SetHost(hostname); co.SetPort(atoi(port)); diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 0397ab306..912bcb4a7 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -3425,15 +3425,15 @@ bool ProxySQL_Admin::init() { #ifdef PROXYSQLCLICKHOUSE void ProxySQL_Admin::init_clickhouse_variables() { -// flush_clickhouse_variables___runtime_to_database(configdb, false, false, false); -// flush_clickhouse_variables___runtime_to_database(admindb, false, true, false); + flush_clickhouse_variables___runtime_to_database(configdb, false, false, false); + flush_clickhouse_variables___runtime_to_database(admindb, false, true, false); flush_clickhouse_variables___database_to_runtime(admindb,true); } #endif /* CLICKHOUSE */ void ProxySQL_Admin::init_sqliteserver_variables() { -// flush_sqliteserver_variables___runtime_to_database(configdb, false, false, false); -// flush_sqliteserver_variables___runtime_to_database(admindb, false, true, false); + flush_sqliteserver_variables___runtime_to_database(configdb, false, false, false); + flush_sqliteserver_variables___runtime_to_database(admindb, false, true, false); flush_sqliteserver_variables___database_to_runtime(admindb,true); }