diff options
author | antirez <antirez@gmail.com> | 2018-01-19 17:18:06 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-03-15 12:54:10 +0100 |
commit | 86fe8fde2098f912f345e8c9385e678bba8fd2b2 (patch) | |
tree | 796e44a2bc04f186829d9f2ef669840543ca018d /src/stream.h | |
parent | ccdae09046e05dae4d2e23a8a98a3ab7305c8d76 (diff) | |
download | redis-86fe8fde2098f912f345e8c9385e678bba8fd2b2.tar.gz |
CG: consumer lookup + initial streamReplyWithRange() work to supprot CG.
Diffstat (limited to 'src/stream.h')
-rw-r--r-- | src/stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.h b/src/stream.h index 4b9e68885..91bdbee5d 100644 --- a/src/stream.h +++ b/src/stream.h @@ -64,7 +64,7 @@ typedef struct streamCG { /* A specific consumer in a consumer group. */ typedef struct streamConsumer { mstime_t seen_time; /* Last time this consumer was active. */ - sds *name; /* Consumer name. This is how the consumer + sds name; /* Consumer name. This is how the consumer will be identified in the consumer group protocol. Case sensitive. */ rax *pel; /* Consumer specific pending entries list: all @@ -89,7 +89,7 @@ struct client; stream *streamNew(void); void freeStream(stream *s); -size_t streamReplyWithRange(struct client *c, stream *s, streamID *start, streamID *end, size_t count, int rev); +size_t streamReplyWithRange(struct client *c, stream *s, streamID *start, streamID *end, size_t count, int rev, streamCG *group, streamConsumer *consumer); void streamIteratorStart(streamIterator *si, stream *s, streamID *start, streamID *end, int rev); int streamIteratorGetID(streamIterator *si, streamID *id, int64_t *numfields); void streamIteratorGetField(streamIterator *si, unsigned char **fieldptr, unsigned char **valueptr, int64_t *fieldlen, int64_t *valuelen); |