summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2018-05-25 17:25:19 +0200
committerantirez <antirez@gmail.com>2018-05-25 17:25:19 +0200
commit6536ce27a4b63ab44fbd209422b2ef7f9160721d (patch)
tree40833c810636c8be5135e6472d744e1ab2b877cc
parent2bd36616bafcafa7137a7dbcb5d3539a6873fb2e (diff)
downloadredis-6536ce27a4b63ab44fbd209422b2ef7f9160721d.tar.gz
Streams: fix comments referring to old ID format.
-rw-r--r--src/t_stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/t_stream.c b/src/t_stream.c
index d17bf362b..4e2db9cdd 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -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;