This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new ccb27b71a Revert "utilize proxy.config.hostdb.host_file.interval 
config variable (#9039)"
ccb27b71a is described below

commit ccb27b71ac5eec10bd98e0c8b3eefcf4bf1c7166
Author: Leif Hedstrom <[email protected]>
AuthorDate: Tue Aug 23 14:23:42 2022 -0600

    Revert "utilize proxy.config.hostdb.host_file.interval config variable 
(#9039)"
    
    This reverts commit 60a91e6b96e914ad3fb5c43c5917cdf0ee8e21d1.
    
    Turns out we do not need this in 9.2.x
---
 iocore/hostdb/HostDB.cc           | 11 -----------
 iocore/hostdb/P_HostDBProcessor.h |  3 ---
 2 files changed, 14 deletions(-)

diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index 0a4a0352c..e39b8fcc5 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -422,7 +422,6 @@ HostDBProcessor::start(int, size_t)
   HostDBContinuation *b = hostDBContAllocator.alloc();
   SET_CONTINUATION_HANDLER(b, 
(HostDBContHandler)&HostDBContinuation::backgroundEvent);
   b->mutex = new_ProxyMutex();
-  b->updateHostFileConfig();
   eventProcessor.schedule_every(b, HRTIME_SECONDS(1), ET_DNS);
 
   return 0;
@@ -1637,15 +1636,6 @@ HostDBContinuation::do_dns()
   }
 }
 
-void
-HostDBContinuation::updateHostFileConfig()
-{
-  RecInt tmp_interval{};
-
-  REC_ReadConfigInteger(tmp_interval, 
"proxy.config.hostdb.host_file.interval");
-  hostdb_hostfile_check_interval = std::chrono::seconds(tmp_interval);
-}
-
 //
 // Background event
 // Just increment the current_interval.  Might do other stuff
@@ -1666,7 +1656,6 @@ HostDBContinuation::backgroundEvent(int /* event 
ATS_UNUSED */, Event * /* e ATS
     struct stat info;
     char path[sizeof(hostdb_hostfile_path)];
 
-    updateHostFileConfig();
     REC_ReadConfigString(path, "proxy.config.hostdb.host_file.path", 
sizeof(path));
     if (0 != strcasecmp(hostdb_hostfile_path, path)) {
       Debug("hostdb", "Update host file '%s' -> '%s'", (*hostdb_hostfile_path 
? hostdb_hostfile_path : "*-none-*"),
diff --git a/iocore/hostdb/P_HostDBProcessor.h 
b/iocore/hostdb/P_HostDBProcessor.h
index 76b3155f0..7a05013c7 100644
--- a/iocore/hostdb/P_HostDBProcessor.h
+++ b/iocore/hostdb/P_HostDBProcessor.h
@@ -462,9 +462,6 @@ struct HostDBContinuation : public Continuation {
   int retryEvent(int event, Event *e);
   int setbyEvent(int event, Event *e);
 
-  // update the host file config variables
-  void updateHostFileConfig();
-
   /// Recompute the hash and update ancillary values.
   void refresh_hash();
   void do_dns();

Reply via email to