Welcome! Log In Create A New Profile

Advanced

Issue 148 in memcached: decr doesn't work with negative values

Posted by Anonymous User 
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 148 by Bluemangroupie: decr doesn't work with negative values
http://code.google.com/p/memcached/issues/detail?id=148

What steps will reproduce the problem?

set 1 0 0 1
5
STORED
incr 1 5000
5005
incr 1 -50
4955
decr 1 50
4905
decr 1 -50
0


What is the expected output? What do you see instead?
decr 1 -50 should add 50 to the value, but it just sets the value to 0.


What version of the product are you using? On what operating system?
memcached 1.2.8
Comment #1 on issue 148 by skrolle: decr doesn't work with negative values
http://code.google.com/p/memcached/issues/detail?id=148

Actually, protocol specs say that values should be unsigned integers, so
both incr and decr with a negative value should do nothing.
Sorry, only registered users may post in this forum.

Click here to login