Valentino Geron
9204a9b2c2
Fix LPOS command when RANK is greater than matches
...
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
```
2020-08-23 16:03:30 +03:00
..
2020-08-17 17:46:54 +03:00
2020-08-23 16:03:30 +03:00
2020-07-15 12:38:22 +03:00
2018-03-25 13:03:38 +02:00
2019-01-17 18:30:23 +01:00
2020-03-23 12:02:12 +01:00
2016-06-15 11:49:49 +02:00
2020-08-12 10:25:24 +08:00
2020-06-03 17:55:18 +08:00
2019-12-18 12:54:46 +01:00
2019-03-15 17:13:19 +01:00
2018-09-30 12:43:11 +03:00
2020-07-10 11:33:47 +03:00
2015-09-14 12:35:55 +02:00
2020-07-15 12:38:22 +03:00
2015-10-09 09:47:17 +02:00
2019-10-07 21:06:13 +03:00
2019-05-05 08:25:01 +03:00
2020-05-20 16:04:42 +03:00
2020-06-23 12:01:33 +03:00
2019-05-13 17:27:10 +02:00
2020-08-12 17:58:56 +03:00
2020-05-26 11:17:08 +03:00
2018-09-11 15:32:28 +02:00
2011-05-20 11:44:54 +02:00
2019-10-07 21:06:13 +03:00
2014-08-08 11:19:37 +02:00
2010-10-15 12:54:53 +02:00
2019-05-22 16:39:04 +01:00
2020-03-26 15:46:31 +02:00
2019-05-14 16:55:52 +02:00
2015-01-02 11:16:10 -05:00
2020-07-28 10:45:21 +03:00
2020-05-14 11:27:31 +02:00
2020-08-23 10:17:43 +03:00