Skip to content

Commit

Permalink
fix: fix "XADD must be greater than 0-0" (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
suxb201 authored May 23, 2024
1 parent 7c75078 commit df23dde
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 @@ -150,7 +150,7 @@ func (o *StreamObject) readStream() {
/* Use the XADD MAXLEN 0 trick to generate an empty stream if
* the key we are serializing is an empty string, which is possible
* for the Stream type. */
args := []string{"xadd", masterKey, "MAXLEN", "0", lastid, "x", "y"}
args := []string{"xadd", masterKey, "MAXLEN", "0", "0-1", "x", "y"}
cmdC <- args
}

Expand Down

0 comments on commit df23dde

Please sign in to comment.