Skip to content

Commit

Permalink
Handle clickhouse in flush_GENERIC_variables__process__database_to_ru…
Browse files Browse the repository at this point in the history
…ntime()
  • Loading branch information
renecannao committed Apr 25, 2024
1 parent c7c4b2f commit b295aca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ProxySQL_Admin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7413,8 +7413,10 @@ void ProxySQL_Admin::flush_GENERIC_variables__process__database_to_runtime(
rc = GloMTH->set_variable(r->fields[0],r->fields[1]);
} else if (modname == "sqliteserver") {
rc = GloSQLite3Server->set_variable(r->fields[0],r->fields[1]);
#ifdef PROXYSQLCLICKHOUSE
} else if (modname == "clickhouse") {
rc = GloClickHouseServer->set_variable(r->fields[0],r->fields[1]);
#endif // PROXYSQLCLICKHOUSE
} else if (modname == "ldap") {
rc = GloMyLdapAuth->set_variable(r->fields[0],r->fields[1]);
}
Expand All @@ -7429,8 +7431,10 @@ void ProxySQL_Admin::flush_GENERIC_variables__process__database_to_runtime(
val = GloMTH->get_variable(r->fields[0]);
} else if (modname == "sqliteserver") {
val = GloSQLite3Server->get_variable(r->fields[0]);
#ifdef PROXYSQLCLICKHOUSE
} else if (modname == "clickhouse") {
val = GloClickHouseServer->get_variable(r->fields[0]);
#endif // PROXYSQLCLICKHOUSE
} else if (modname == "ldap") {
val = GloMyLdapAuth->get_variable(r->fields[0]);
}
Expand Down

0 comments on commit b295aca

Please sign in to comment.