Skip to content

Commit df23dde

Browse files
authored
fix: fix "XADD must be greater than 0-0" (#808)
1 parent 7c75078 commit df23dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/rdb/types/stream.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (o *StreamObject) readStream() {
150150
/* Use the XADD MAXLEN 0 trick to generate an empty stream if
151151
* the key we are serializing is an empty string, which is possible
152152
* for the Stream type. */
153-
args := []string{"xadd", masterKey, "MAXLEN", "0", lastid, "x", "y"}
153+
args := []string{"xadd", masterKey, "MAXLEN", "0", "0-1", "x", "y"}
154154
cmdC <- args
155155
}
156156

0 commit comments

Comments
 (0)