• antirez's avatar
    Streams: Change XADD MAXLEN handling of values <= 0. · 62f9ac6f
    antirez authored
    Now a MAXLEN of 0 really does what it means: it will create a zero
    entries stream. This is useful in order to make sure that the behavior
    is identical to XTRIM, that must be able to reduce the stream to zero
    elements when MAXLEN is given.
    
    Also now MAXLEN with a count < 0 will return an error.
    62f9ac6f
t_stream.c 91 KB