Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-23883] backport #2617 to 11.0.1, JDBC_CACHE_HINT_ONLY #2702

Merged
merged 1 commit into from
Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/broker/broker_admin_pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ admin_conf_change (int master_shm_id, const char *br_name, const char *conf_name
br_info_p->jdbc_cache = val;
shm_as_p->jdbc_cache = val;
}
else if (strcasecmp (conf_name, "JDBC_CACHE_ONLY_HINT") == 0)
else if (strcasecmp (conf_name, "JDBC_CACHE_HINT_ONLY") == 0)
{
int val;

Expand Down
4 changes: 2 additions & 2 deletions src/broker/broker_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ broker_config_read_internal (const char *conf_file, T_BROKER_INFO * br_info, int
}

br_info[num_brs].jdbc_cache_only_hint =
conf_get_value_table_on_off (ini_getstr (ini, sec_name, "JDBC_CACHE_ONLY_HINT", "OFF", &lineno));
conf_get_value_table_on_off (ini_getstr (ini, sec_name, "JDBC_CACHE_HINT_ONLY", "OFF", &lineno));
if (br_info[num_brs].jdbc_cache_only_hint < 0)
{
errcode = PARAM_BAD_VALUE;
Expand Down Expand Up @@ -1340,7 +1340,7 @@ broker_config_dump (FILE * fp, const T_BROKER_INFO * br_info, int num_broker, in
tmp_str = get_conf_string (br_info[i].jdbc_cache_only_hint, tbl_on_off);
if (tmp_str)
{
fprintf (fp, "JDBC_CACHE_ONLY_HINT\t=%s\n", tmp_str);
fprintf (fp, "JDBC_CACHE_HINT_ONLY\t=%s\n", tmp_str);
}

fprintf (fp, "JDBC_CACHE_LIFE_TIME\t=%d\n", br_info[i].jdbc_cache_life_time);
Expand Down