Skip to content

Commit a44a531

Browse files
committed
TS-4747: change parent_failures_update_hostdb to MgmtByte.
1 parent e1410f0 commit a44a531

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

proxy/InkAPI.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8154,7 +8154,6 @@ _conf_to_memberp(TSOverridableConfigKey conf, OverridableHttpConfigParams *overr
81548154
ret = &overridableHttpConfig->client_cert_filepath;
81558155
break;
81568156
case TS_CONFIG_PARENT_FAILURES_UPDATE_HOSTDB:
8157-
typ = OVERRIDABLE_TYPE_INT;
81588157
ret = &overridableHttpConfig->parent_failures_update_hostdb;
81598158
break;
81608159
// This helps avoiding compiler warnings, yet detect unhandled enum members.

proxy/http/HttpConfig.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ HttpConfig::startup()
972972
HttpEstablishStaticConfigLongLong(c.oride.parent_connect_attempts, "proxy.config.http.parent_proxy.total_connect_attempts");
973973
HttpEstablishStaticConfigLongLong(c.per_parent_connect_attempts, "proxy.config.http.parent_proxy.per_parent_connect_attempts");
974974
HttpEstablishStaticConfigLongLong(c.parent_connect_timeout, "proxy.config.http.parent_proxy.connect_attempts_timeout");
975-
HttpEstablishStaticConfigLongLong(c.oride.parent_failures_update_hostdb, "proxy.config.http.parent_proxy.mark_down_hostdb");
975+
HttpEstablishStaticConfigByte(c.oride.parent_failures_update_hostdb, "proxy.config.http.parent_proxy.mark_down_hostdb");
976976

977977
HttpEstablishStaticConfigLongLong(c.oride.sock_recv_buffer_size_out, "proxy.config.net.sock_recv_buffer_size_out");
978978
HttpEstablishStaticConfigLongLong(c.oride.sock_send_buffer_size_out, "proxy.config.net.sock_send_buffer_size_out");

proxy/http/HttpConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ struct OverridableHttpConfigParams {
564564
// hostdb/dns variables //
565565
//////////////////////////
566566
MgmtByte srv_enabled;
567-
MgmtInt parent_failures_update_hostdb;
567+
MgmtByte parent_failures_update_hostdb;
568568

569569
MgmtByte cache_open_write_fail_action;
570570

0 commit comments

Comments
 (0)