From: Brian Aker Date: Wed, 21 May 2008 01:46:07 +0000 (-0700) Subject: Found issue with rollback for clone operation with prefix key. X-Git-Tag: 0.21~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=2bb5c4d8d0b27380e1f0c1240581ddb592fdb577;p=awesomized%2Flibmemcached Found issue with rollback for clone operation with prefix key. --- diff --git a/libmemcached/memcached.c b/libmemcached/memcached.c index 74e75706..f6d71d59 100644 --- a/libmemcached/memcached.c +++ b/libmemcached/memcached.c @@ -122,7 +122,10 @@ memcached_st *memcached_clone(memcached_st *clone, memcached_st *ptr) new_clone->delete_trigger= ptr->delete_trigger; if (ptr->prefix_key[0] != 0) + { strcpy(new_clone->prefix_key, ptr->prefix_key); + new_clone->prefix_key_length= ptr->prefix_key_length; + } rc= run_distribution(new_clone); if (rc != MEMCACHED_SUCCESS)