hash clear function.

git-svn-id: file:///svn/unbound/trunk@725 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-10-31 16:15:44 +00:00
parent f79c387f3f
commit 2725ad55fc
7 changed files with 72 additions and 0 deletions
+5
View File
@@ -371,6 +371,11 @@ test_long_table(struct lruhash* table)
srandom(48);
for(i=0; i<1000; i++) {
/* what to do? */
if(i == 500) {
lruhash_clear(table);
memset(ref, 0, sizeof(ref));
continue;
}
switch(random() % 4) {
case 0:
case 3:
+5
View File
@@ -251,6 +251,11 @@ test_long_table(struct slabhash* table)
srandom(48);
for(i=0; i<1000; i++) {
/* what to do? */
if(i == 500) {
slabhash_clear(table);
memset(ref, 0, sizeof(ref));
continue;
}
switch(random() % 4) {
case 0:
case 3: