Met a issue when I tried to set the distribution type.

Bug #1237255 reported by Han Yan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Memcached Functions for MySQL
New
Undecided
Unassigned

Bug Description

When I tried to set distibuition type like below:
select memc_servers_behavior_set("MEMCACHED_BEHAVIOR_DISTRIBUTION","MEMCACHED_DISTRIBUTION_KETAMA");
 It will return
INALID VALUE FOR DISTRIBUTION! see: memc_list_distribution_types();
even though the value was copied from the result of memc_list_distribution_types().
I have take a look at server.c and got below from line 245:
strcasecmp(args->args[1], "MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA") )
So I tried to use MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA as the value to set the distribution type, and successed. But when I run memc_servers_behavior_get("MEMCACHED_BEHAVIOR_DISTRIBUTION"), it will return a mysql connection lost issue.
ERROR 2013 (HY000): Lost connection to MySQL server during query

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.