diff options
author | Itamar Haber <itamar@garantiadata.com> | 2021-11-30 19:56:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 19:56:39 +0200 |
commit | 21aa1d4b9118bd42d254c7f9e6157c44d8b1a61d (patch) | |
tree | b3f76e235683a09b3d91848f99801d5fdad2941b /src/stream.h | |
parent | 2afa41f62847b92ba66f5579b4731494fac3afc3 (diff) | |
download | redis-21aa1d4b9118bd42d254c7f9e6157c44d8b1a61d.tar.gz |
Adds auto-seq-only-generation via `XADD ... <ms>-*` (#9217)
Adds the ability to autogenerate the sequence part of the millisecond-only explicit ID specified for `XADD`. This is useful in case added entries have an externally-provided timestamp without sub-millisecond resolution.
Diffstat (limited to 'src/stream.h')
-rw-r--r-- | src/stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.h b/src/stream.h index d1f17c311..724f2c2ad 100644 --- a/src/stream.h +++ b/src/stream.h @@ -129,7 +129,7 @@ robj *streamDup(robj *o); int streamValidateListpackIntegrity(unsigned char *lp, size_t size, int deep); int streamParseID(const robj *o, streamID *id); robj *createObjectFromStreamID(streamID *id); -int streamAppendItem(stream *s, robj **argv, int64_t numfields, streamID *added_id, streamID *use_id); +int streamAppendItem(stream *s, robj **argv, int64_t numfields, streamID *added_id, streamID *use_id, int seq_given); int streamDeleteItem(stream *s, streamID *id); int64_t streamTrimByLength(stream *s, long long maxlen, int approx); int64_t streamTrimByID(stream *s, streamID minid, int approx); |