Skip to content

Commit 2917848

Browse files
author
Peter Gnodde
committed
Reset the lookup table so that the htable can be used after it is cleared
1 parent 61d5461 commit 2917848

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)