From 2bb5c4d8d0b27380e1f0c1240581ddb592fdb577 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Tue, 20 May 2008 18:46:07 -0700 Subject: [PATCH] Found issue with rollback for clone operation with prefix key. --- libmemcached/memcached.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2