Describe the bug
If you have an entry in a sorted set, using LT with INCR to a positive number should not INCR the number (same with GT and negative). However, the 'reply' does indeed show the increased number (unexpected). Though, the actual score does not change (which is expected)
To reproduce
127.0.0.1:6379> zadd x 1 a
(integer) 1
127.0.0.1:6379> zadd x LT 2 a
(integer) 0
127.0.0.1:6379> zrange x 0 -1 withscores
1) "a"
2) "1"
127.0.0.1:6379> zadd x LT incr 1 a
"2"
127.0.0.1:6379> zrange x 0 -1 withscores
1) "a"
2) "1"
Expected behavior
zadd x LT incr 1 a
should result:
"1"
Any additional information that is relevant to the problem.