Skip to content

Commit 99d6f20

Browse files
authored
Merge pull request #95 from frankbv/master
Reset the lookup table so that the htable can be used after it is cleared
2 parents 61d5461 + 2917848 commit 99d6f20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ds/ds_htable.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ void ds_htable_clear(ds_htable_t *table)
495495
ds_htable_realloc(table, DS_HTABLE_MIN_CAPACITY);
496496
}
497497

498+
ds_htable_reset_lookup(table);
499+
498500
table->min_deleted = table->capacity;
499501
}
500502

0 commit comments

Comments
 (0)