Wang Yuan 75f9dec644 Limit the main db and expires dictionaries to expand (#7954) 4 anni fa
..
README 1c71038540 Squash merging 125 typo/grammar/comment/doc PRs (#7773) 4 anni fa
rehashing.c 75f9dec644 Limit the main db and expires dictionaries to expand (#7954) 4 anni fa

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 the visualization code is reusable in new bugs
investigation.

Compile with:

cc -I ../../src/ rehashing.c ../../src/zmalloc.c ../../src/dict.c -o rehashing_test