Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
89742a95
Unverified
Commit
89742a95
authored
Aug 02, 2024
by
c8ef
Committed by
GitHub
Aug 02, 2024
Browse files
Fix typo in `hyperloglog.c` (#13458)
parent
60e9e630
Changes
1
Show whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
89742a95
...
@@ -648,7 +648,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
...
@@ -648,7 +648,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
* for future reallocates on incremental growth. But we do not allocate more than
* for future reallocates on incremental growth. But we do not allocate more than
* 'server.hll_sparse_max_bytes' bytes for the sparse representation.
* 'server.hll_sparse_max_bytes' bytes for the sparse representation.
* If the available size of hyperloglog sds string is not enough for the increment
* If the available size of hyperloglog sds string is not enough for the increment
* we need, we promote the hyp
r
eloglog to dense representation in 'step 3'.
* we need, we promote the hype
r
loglog to dense representation in 'step 3'.
*/
*/
if
(
sdsalloc
(
o
->
ptr
)
<
server
.
hll_sparse_max_bytes
&&
sdsavail
(
o
->
ptr
)
<
3
)
{
if
(
sdsalloc
(
o
->
ptr
)
<
server
.
hll_sparse_max_bytes
&&
sdsavail
(
o
->
ptr
)
<
3
)
{
size_t
newlen
=
sdslen
(
o
->
ptr
)
+
3
;
size_t
newlen
=
sdslen
(
o
->
ptr
)
+
3
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment