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
84b28120
Commit
84b28120
authored
Mar 01, 2018
by
antirez
Browse files
Stream: update the listpack pointer in streamTrimByLength().
parent
efcbc01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
84b28120
...
...
@@ -422,6 +422,9 @@ int64_t streamTrimByLength(stream *s, size_t maxlen, int approx) {
/* TODO: perform a garbage collection. */
}
/* Update the listpack with the new pointer. */
raxInsert
(
s
->
rax
,
ri
.
key
,
ri
.
key_len
,
lp
,
NULL
);
break
;
/* If we are here, there was enough to delete in the current
node, so no need to go to the next node. */
}
...
...
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