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
6536ce27
Commit
6536ce27
authored
May 25, 2018
by
antirez
Browse files
Streams: fix comments referring to old ID format.
parent
2bd36616
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
6536ce27
...
...
@@ -989,7 +989,7 @@ int string2ull(const char *s, unsigned long long *value) {
}
/* Parse a stream ID in the format given by clients to Redis, that is
* <ms>
.
<seq>, and converts it into a streamID structure. If
* <ms>
-
<seq>, and converts it into a streamID structure. If
* the specified ID is invalid C_ERR is returned and an error is reported
* to the client, otherwise C_OK is returned. The ID may be in incomplete
* form, just stating the milliseconds time part of the stream. In such a case
...
...
@@ -1014,7 +1014,7 @@ int streamParseIDOrReply(client *c, robj *o, streamID *id, uint64_t missing_seq)
return
C_OK
;
}
/* Parse <ms>
.
<seq> form. */
/* Parse <ms>
-
<seq> form. */
char
*
dot
=
strchr
(
buf
,
'-'
);
if
(
dot
)
*
dot
=
'\0'
;
unsigned
long
long
ms
,
seq
;
...
...
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