Found issue with rollback for clone operation with prefix key.
authorBrian Aker <brian@tangent.org>
Wed, 21 May 2008 01:46:07 +0000 (18:46 -0700)
committerBrian Aker <brian@tangent.org>
Wed, 21 May 2008 01:46:07 +0000 (18:46 -0700)
libmemcached/memcached.c

index 74e75706875451277f9971a9a163d97155a54d8e..f6d71d592eefd34f5b136bf3939250bb32aa4407 100644 (file)
@@ -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)