diff options
author | Lu JJ <275955589@qq.com> | 2022-05-29 13:51:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-29 08:51:33 +0300 |
commit | 2f5edd03e6d25f400a6eade67d08c329adc8ef12 (patch) | |
tree | 1a41bc59404c39aaebe96cc1a5734bc21d3aee54 | |
parent | 1013cbeae2060bf14b9b430f3ae1f1bf9a0aad1c (diff) | |
download | redis-2f5edd03e6d25f400a6eade67d08c329adc8ef12.tar.gz |
fix typo in quicklist.c (#10785)
fix typo ` the largest possible limit is 16k` -> ` the largest possible limit is 64k`.
The count field is 16 bits so the largest possible limit is 64k(2**16).
-rw-r--r-- | src/quicklist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicklist.c b/src/quicklist.c index 06e5034f3..1731e9336 100644 --- a/src/quicklist.c +++ b/src/quicklist.c @@ -43,7 +43,7 @@ #endif /* Optimization levels for size-based filling. - * Note that the largest possible limit is 16k, so even if each record takes + * Note that the largest possible limit is 64k, so even if each record takes * just one byte, it still won't overflow the 16 bit count field. */ static const size_t optimization_level[] = {4096, 8192, 16384, 32768, 65536}; |