Unverified Commit 528b0e69 authored by Pengfei Han's avatar Pengfei Han Committed by GitHub
Browse files

Update dict.c dict_can_resize comment (#12059)

The comment for dict_can_resize in dict.c should be updated. Currently 0 means
DICT_RESIZE_ENABLE, but should actually be DICT_RESIZE_AVOID or 1.
parent 20533cc1
...@@ -52,9 +52,9 @@ ...@@ -52,9 +52,9 @@
* for Redis, as we use copy-on-write and don't want to move too much memory * for Redis, as we use copy-on-write and don't want to move too much memory
* around when there is a child performing saving operations. * around when there is a child performing saving operations.
* *
* Note that even when dict_can_resize is set to 0, not all resizes are * Note that even when dict_can_resize is set to DICT_RESIZE_AVOID, not all
* prevented: a hash table is still allowed to grow if the ratio between * resizes are prevented: a hash table is still allowed to grow if the ratio
* the number of elements and the buckets > dict_force_resize_ratio. */ * between the number of elements and the buckets > dict_force_resize_ratio. */
static dictResizeEnable dict_can_resize = DICT_RESIZE_ENABLE; static dictResizeEnable dict_can_resize = DICT_RESIZE_ENABLE;
static unsigned int dict_force_resize_ratio = 5; static unsigned int dict_force_resize_ratio = 5;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment