path: root/tests/hash:ip.t
diff options
authorJozsef Kadlecsik <>2014-10-26 00:11:29 +0200
committerJozsef Kadlecsik <>2014-11-18 08:08:59 +0100
commitab37682708b57c664acdf7b9122773bc71d25bde (patch)
treed8d51bb34824662eb08015173d18794434fdc134 /tests/hash:ip.t
parent1ad6ec25d566c8e1c8fe2f16d265f8f0cafdc76a (diff)
Fix parallel resizing and listing of the same set
When elements added to a hash:* type of set and resizing triggered, parallel listing could start to list the original set (before resizing) and "continue" with listing the new set. Fix it by references and using the original hash table for listing. Therefore the destroying the original hash table may happen from the resizing or listing functions.
Diffstat (limited to 'tests/hash:ip.t')
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hash:ip.t b/tests/hash:ip.t
index 2ad6831..a3ab1e2 100644
--- a/tests/hash:ip.t
+++ b/tests/hash:ip.t
@@ -58,6 +58,10 @@
0 ipset -W test resize-test
# IP: Check listing, which requires multiple messages
0 n=`ipset -S test | wc -l` && test $n -eq 8161
+# IP: Flush sets
+0 ipset -F
+# IP: Run resize and listing parallel
+0 ./
# IP: Destroy sets
0 ipset -X
# IP: Create set to add a range