guybe7 41832aee11 zsetAdd: Fix wrong reply in case of INCR and GT/LT (#8717)
If GT/LT fails the operation we need to reply with
nill (like failure due to NX).

Other changes:
Add the missing $encoding suffix to many zset tests

Note: there's a behavior change just in case of INCR + GT/LT that fails.
The old code was replying with the wrong (rejected) score, and now it'll reply with nil.

Note that that's anyway a corner case so this "behavior change" shouldn't have too much affect.
Using GT/LT with INCR has a predictable result even before we run the command
(INCR GT will only only / always fail if the increment is negative).
2021-04-01 09:33:53 +03:00
..
2020-03-23 12:02:12 +01:00
2016-06-15 11:49:49 +02:00
2021-01-23 21:53:58 +02:00
2021-02-04 19:39:07 +02:00
2015-10-09 09:47:17 +02:00
2010-10-15 12:54:53 +02:00
2021-01-17 15:48:48 +02:00
2021-01-17 15:48:48 +02:00