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

bnolsen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new dc8d761352 restore IntrusiveHashMap insert code to tscore (#10992)
dc8d761352 is described below

commit dc8d761352ef6aecb106d4b160d2583a5591d36e
Author: Brian Olsen <[email protected]>
AuthorDate: Wed Jan 24 10:55:43 2024 -0700

    restore IntrusiveHashMap insert code to tscore (#10992)
---
 lib/swoc/include/swoc/IntrusiveHashMap.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/lib/swoc/include/swoc/IntrusiveHashMap.h 
b/lib/swoc/include/swoc/IntrusiveHashMap.h
index 4bbe3b6361..201f093e71 100644
--- a/lib/swoc/include/swoc/IntrusiveHashMap.h
+++ b/lib/swoc/include/swoc/IntrusiveHashMap.h
@@ -514,15 +514,6 @@ IntrusiveHashMap<H>::insert(value_type *v) {
     if (spot != bucket->_v) {
       mixed_p = true; // found some other key, it's going to be mixed.
     }
-    if (spot != limit) {
-      // If an equal key was found, walk past those to insert at the upper end 
of the range.
-      do {
-        spot = H::next_ptr(spot);
-      } while (spot != limit && H::equal(key, H::key_of(spot)));
-      if (spot != limit) { // something not equal past last equivalent, it's 
going to be mixed.
-        mixed_p = true;
-      }
-    }
 
     _list.insert_before(spot, v);
     if (spot == bucket->_v) { // added before the bucket start, update the 
start.

Reply via email to