Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cc8125a7
Unverified
Commit
cc8125a7
authored
Jul 30, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Jul 30, 2019
Browse files
Merge pull request #6282 from JohnSully/hll_corruption
Fix HLL corruption bug
parents
505a8550
d659654f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
cc8125a7
...
...
@@ -701,6 +701,7 @@ int hllSparseSet(robj *o, long index, uint8_t count) {
first
+=
span
;
}
if
(
span
==
0
)
return
-
1
;
/* Invalid format. */
if
(
span
>=
end
)
return
-
1
;
/* Invalid format. */
next
=
HLL_SPARSE_IS_XZERO
(
p
)
?
p
+
2
:
p
+
1
;
if
(
next
>=
end
)
next
=
NULL
;
...
...
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