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

    https://github.com/apache/trafficserver/pull/653#discussion_r65796064
  
    --- Diff: iocore/hostdb/HostDB.cc ---
    @@ -1593,29 +1437,21 @@ HostDBContinuation::dnsEvent(int event, HostEnt *e)
                   }
                 }
               }
    -        } else {
    -          for (ii = 0; ii < nn; ++ii) {
    -            if (is_addr_valid(af, e->ent.h_addr_list[ii])) {
    -              HostDBInfo &item = rr_data->info[i];
    -              memset(&item, 0, sizeof(item));
    -              ip_addr_set(item.ip(), af, e->ent.h_addr_list[ii]);
    -              item.full = 1;
    -              item.round_robin = 0;
    -              item.round_robin_elt = 1;
    -              item.reverse_dns = 0;
    -              item.is_srv = 0;
    -              item.md5_high = r->md5_high;
    -              item.md5_low = r->md5_low;
    -              item.md5_low_low = r->md5_low_low;
    -              item.hostname_offset = 0;
    -              if (!restore_info(&item, old_r, old_info, old_rr_data)) {
    -                item.app.allotment.application1 = 0;
    -                item.app.allotment.application2 = 0;
    -              }
    -              ++i;
    +        } else { // Otherwise this is a regular dns response
    +          for (int i = 0; i < valid_records; ++i) {
    +            HostDBInfo &item = rr_data->info[i];
    +            memset(&item, 0, sizeof(item));
    +            ip_addr_set(item.ip(), af, e->ent.h_addr_list[i]);
    +            item.round_robin = 0;
    --- End diff --
    
    Well, first off-- although this is in the diff, that is actually what it is 
today.
    
    From looking at it the field is actually `unsigned int round_robin : 1;` so 
technically it is an int ;)


---
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