memcached_increment_with_initial() sets wrong initial value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmemcached |
New
|
Undecided
|
Unassigned |
Bug Description
When calling memcached_
"1\x0\x0\
So the key value is a 22 characters string with a number at the beginning and then padding zeros. You can see it when yo use telnet and ask memcached directly for key value:
get get ADV-CNTR-
VALUE ADV-CNTR-
1END
Also Python library reports the same value.
From C language perspective this bug is not visible and this is probably why it hasn't been found yet. Any subsequent call to memcached_