Skip to content

Commit

Permalink
bugfix: fix stream parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
suxb201 committed Jan 3, 2024
1 parent 10068d3 commit 0d78f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rdb/types/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (o *StreamObject) readStream(rd io.Reader, masterKey string, typeByte byte)
* in case of XDEL lastid. */
o.cmds = append(o.cmds, []string{"xsetid", masterKey, lastid})

if typeByte == rdbTypeStreamListpacks2 {
if typeByte >= rdbTypeStreamListpacks2 {
/* Load the first entry ID. */
_ = structure.ReadLength(rd) // first_ms
_ = structure.ReadLength(rd) // first_seq
Expand Down

0 comments on commit 0d78f8e

Please sign in to comment.