瀏覽代碼

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 年之前
父節點
當前提交
93f7e7910b
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)