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
6ef5a0cb
"vscode:/vscode.git/clone" did not exist on "b1a01fda91693be8e3692ff2124ac90ae2b9eec2"
Commit
6ef5a0cb
authored
Jul 29, 2019
by
John Sully
Committed by
antirez
Jul 30, 2019
Browse files
Fix HLL corruption bug
parent
990cd2c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyperloglog.c
View file @
6ef5a0cb
...
...
@@ -689,6 +689,7 @@ int hllSparseAdd(robj *o, unsigned char *ele, size_t elesize) {
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