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
1ea66724
Commit
1ea66724
authored
Feb 07, 2020
by
antirez
Browse files
Rax.c: populate data field after random walk.
parent
d933d6f2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/rax.c
View file @
1ea66724
...
@@ -1766,6 +1766,7 @@ int raxRandomWalk(raxIterator *it, size_t steps) {
...
@@ -1766,6 +1766,7 @@ int raxRandomWalk(raxIterator *it, size_t steps) {
if
(
n
->
iskey
)
steps
--
;
if
(
n
->
iskey
)
steps
--
;
}
}
it
->
node
=
n
;
it
->
node
=
n
;
it
->
data
=
raxGetData
(
it
->
node
);
return
1
;
return
1
;
}
}
...
...
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