Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-25036

Revisit ServerIdentifier::hash()

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.12.12
    • Roxie
    • None

    Description

       
      Currently it is implemented as

         unsigned hash() const { return netAddress; }
      
      

      which may be a problem now that the ip mapping hash table directly uses ServerIdentitiers.  Only the bottom byte is used by lookup():
      **
       

      unsigned hash = ip.fasthash() & 0xff;  

       which is likely be have reasonably well on most systems, so not a high priority.
       
       

      Attachments

        Activity

          People

            richardkchapman Richard Chapman
            ghalliday Gavin Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: