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
2b189f09
Commit
2b189f09
authored
Jun 18, 2020
by
chenhui0212
Committed by
Oran Agra
Jul 20, 2020
Browse files
Fix comments in function raxLowWalk of listpack.c
(cherry picked from commit
f800b521
)
parent
3328b7a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rax.c
View file @
2b189f09
...
...
@@ -487,8 +487,8 @@ static inline size_t raxLowWalk(rax *rax, unsigned char *s, size_t len, raxNode
if
(
h
->
iscompr
)
j
=
0
;
/* Compressed node only child is at index 0. */
memcpy
(
&
h
,
children
+
j
,
sizeof
(
h
));
parentlink
=
children
+
j
;
j
=
0
;
/* If the new node is compressed and we do not
iterate again (since i == l) set the split
j
=
0
;
/* If the new node is
non
compressed and we do not
iterate again (since i == l
en
) set the split
position to 0 to signal this node represents
the searched key. */
}
...
...
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