• Valentino Geron's avatar
    Fix LPOS command when RANK is greater than matches · 19ef1f37
    Valentino Geron authored
    When calling to LPOS command when RANK is higher than matches,
    the return value is non valid response. For example:
    ```
    LPUSH l a
    :1
    LPOS l b RANK 5 COUNT 10
    *-4
    ```
    It may break client-side parser.
    
    Now, we count how many replies were replied in the array.
    ```
    LPUSH l a
    :1
    LPOS l b RANK 5 COUNT 10
    *0
    ```
    
    (cherry picked from commit 9204a9b2)
    19ef1f37
t_list.c 29.7 KB