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
fb9c1c3d
Commit
fb9c1c3d
authored
May 25, 2018
by
antirez
Browse files
Simplify XADD ID syntax error code path,.
parent
a60f553b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
fb9c1c3d
...
...
@@ -1063,12 +1063,9 @@ void xaddCommand(client *c) {
maxlen_arg_idx
=
i
;
}
else
{
/* If we are here is a syntax error or a valid ID. */
if
(
streamParseIDOrReply
(
c
,
c
->
argv
[
i
],
&
id
,
0
)
==
C_OK
)
{
id_given
=
1
;
break
;
}
else
{
return
;
}
if
(
streamParseIDOrReply
(
c
,
c
->
argv
[
i
],
&
id
,
0
)
!=
C_OK
)
return
;
id_given
=
1
;
break
;
}
}
int
field_pos
=
i
+
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