dict.c Rehashing visualization code snippet added to utils.

This commit is contained in:
antirez
2015-02-07 10:11:43 +01:00
parent 05841a6386
commit edda00b902
2 changed files with 145 additions and 0 deletions

13
utils/hashtable/README Normal file
View File

@ -0,0 +1,13 @@
Hash table implementation related utilities.
rehashing.c
---
Visually show buckets in the two hash tables between rehashings. Also stress
test getRandomKeys() implementation, that may actually disappear from
Redis soon, however visualizaiton some code is reusable in new bugs
investigation.
Compile with:
cc -I ../../src/ rehashing.c ../../src/zmalloc.c ../../src/dict.c -o rehashing_test