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
0248a6b1
Commit
0248a6b1
authored
Sep 29, 2017
by
antirez
Browse files
Streams: fix streamTrimByLength() standalone items skipping.
parent
05408032
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
0248a6b1
...
...
@@ -383,7 +383,7 @@ int64_t streamTrimByLength(stream *s, size_t maxlen, int approx) {
if
(
flags
&
STREAM_ITEM_FLAG_SAMEFIELDS
)
{
to_skip
=
master_fields_count
;
}
else
{
to_skip
=
lpGetInteger
(
p
);
p
=
lpNext
(
lp
,
p
);
to_skip
=
lpGetInteger
(
p
);
to_skip
=
1
+
(
to_skip
*
2
);
}
...
...
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