Selaa lähdekoodia

HPCC-12220 SuperHashTable kill not resetting tablecount

releaseAll() was not resetting tablecount, as a consequence
the HT size would spuriously continue to grow + increase the
cost of releaseAll's time to walk the HT to clear elements

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 10 vuotta sitten
vanhempi
commit
93f7e7910b
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      system/jlib/jsuperhash.cpp

+ 1 - 0
system/jlib/jsuperhash.cpp

@@ -457,6 +457,7 @@ void SuperHashTable::releaseAll(void)
         if (et)
             onRemove(et);
     }
+    tablecount = 0;
 }
 
 void SuperHashTable::kill(void)