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
6d34ff36
Commit
6d34ff36
authored
Jun 07, 2018
by
antirez
Browse files
Streams: max node limits only checked if non zero.
parent
19a438e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
6d34ff36
...
...
@@ -241,9 +241,11 @@ int streamAppendItem(stream *s, robj **argv, int numfields, streamID *added_id,
* if we need to switch to the next one. 'lp' will be set to NULL if
* the current node is full. */
if
(
lp
!=
NULL
)
{
if
(
lp_bytes
>
server
.
stream_node_max_bytes
)
{
if
(
server
.
stream_node_max_bytes
&&
lp_bytes
>
server
.
stream_node_max_bytes
)
{
lp
=
NULL
;
}
else
{
}
else
if
(
server
.
stream_node_max_entries
)
{
int64_t
count
=
lpGetInteger
(
lpFirst
(
lp
));
if
(
count
>
server
.
stream_node_max_entries
)
lp
=
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