Github user jacksontj commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/653#discussion_r65779442
  
    --- Diff: iocore/hostdb/HostDB.cc ---
    @@ -439,37 +327,24 @@ HostDBCache::start(int flags)
         Warning("Please set 'proxy.config.hostdb.storage_path' or 
'proxy.config.local_state_dir'");
       }
     
    -  hostDBStore = new Store;
    -  hostDBSpan = new Span;
    -  hostDBSpan->init(storage_path, storage_size);
    -  hostDBStore->add(hostDBSpan);
    -
    -  Debug("hostdb", "Opening %s, size=%d", hostdb_filename, hostdb_size);
    -  if (open(hostDBStore, "hostdb.config", hostdb_filename, hostdb_size, 
reconfigure, fix, false /* slient */) < 0) {
    -    ats_scoped_str rundir(RecConfigReadRuntimeDir());
    -    ats_scoped_str config(Layout::relative_to(rundir, "hostdb.config"));
    +  // Combine the path and name
    +  char full_path[2 * PATH_NAME_MAX];
    --- End diff --
    
    Yea, TBH I'm not sure why thats like that-- it was before (in a different 
part of the code-- moved to here. Presumably we actually know what the size 
is-- since we have the filename and path... I can definitely clean that :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to