memcached_server_by_key is broken
Bug #1076048 reported by
Massive Media
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmemcached |
Invalid
|
Undecided
|
Brian Aker |
Bug Description
When upgrading from an older version (1.0.5) of libmemcached to 1.0.13, I notices that memcached_
(I attached a test script)
The returned memcached_server_st *server is corrupt:
server->hostname is always empty and server->port is 65535
Related branches
lp:~brianaker/libmemcached/1048945
(Merged)
Changed in libmemcached: | |
assignee: | nobody → Brian Aker (brianaker) |
To post a comment you must log in.
memcached_ server_ by_key( ) returns a memcached_ server_ instance_ st(), not a memcached_ server_ st().
The structures were similar enough such that at some point in history you could use one for the other, but this was not supported.
If you are rewriting the code I would look at using memcached(). It is much more flexible.