diff --git a/db/comdb2.c b/db/comdb2.c index 45b91fe8c0..b923500db7 100644 --- a/db/comdb2.c +++ b/db/comdb2.c @@ -462,6 +462,7 @@ int gbl_osql_verify_ext_chk = 1; int gbl_test_badwrite_intvl = 0; int gbl_test_blob_race = 0; +int gbl_test_resolve_hostname_failure = 0; int gbl_skip_ratio_trace = 0; int gbl_throttle_sql_overload_dump_sec = 5; diff --git a/db/db_tunables.c b/db/db_tunables.c index 18b05161c7..a1720ed809 100644 --- a/db/db_tunables.c +++ b/db/db_tunables.c @@ -554,6 +554,7 @@ extern int gbl_altersc_latency_inc; extern int gbl_sc_history_max_rows; extern int gbl_sc_status_max_rows; extern int gbl_rep_process_pstack_time; +extern int gbl_test_resolve_hostname_failure; extern void set_snapshot_impl(snap_impl_enum impl); extern const char *snap_impl_str(snap_impl_enum impl); diff --git a/db/db_tunables.h b/db/db_tunables.h index 05d3e187c3..8e0494a524 100644 --- a/db/db_tunables.h +++ b/db/db_tunables.h @@ -2460,4 +2460,6 @@ REGISTER_TUNABLE("sc_status_max_rows", "Max number of rows returned in comdb2_sc TUNABLE_INTEGER, &gbl_sc_status_max_rows, 0, NULL, NULL, NULL, NULL); REGISTER_TUNABLE("rep_process_pstack_time", "pstack the server if rep_process runs longer than time specified in secs (Default: 30s)", TUNABLE_INTEGER, &gbl_rep_process_pstack_time, 0, NULL, NULL, NULL, NULL); +REGISTER_TUNABLE("test_resolve_hostname_failure (Default: off)", NULL, TUNABLE_INTEGER, &gbl_test_resolve_hostname_failure, + READONLY, NULL, NULL, NULL, NULL); #endif /* _DB_TUNABLES_H */