Bugfixes for ClickHouse, unitialized variables

pull/1190/head
René Cannaò 9 years ago
parent 46193a634c
commit 7b153c407b

@ -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));

@ -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);
}

Loading…
Cancel
Save