Skip to content

Commit 3fc63d0

Browse files
committed
修复 htNeedsResize 函数的一个 BUG ,感谢 wyj2046 的提醒
1 parent c71af75 commit 3fc63d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/redis.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,10 @@ dictType migrateCacheDictType = {
644644
int htNeedsResize(dict *dict) {
645645
long long size, used;
646646

647-
// 哈希表已用节点数量
647+
// 哈希表大小
648648
size = dictSlots(dict);
649649

650-
// 哈希表大小
650+
// 哈希表已用节点数量
651651
used = dictSize(dict);
652652

653653
// 当哈希表的大小大于 DICT_HT_INITIAL_SIZE

0 commit comments

Comments
 (0)