f-stack/app/redis-3.2.8/utils/hashtable
logwang a9643ea85c init 2017-04-21 18:43:26 +08:00
..
README init 2017-04-21 18:43:26 +08:00
rehashing.c init 2017-04-21 18:43:26 +08:00

README

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