From 0fd83e8afc98801c62245753c41bbe56294478f8 Mon Sep 17 00:00:00 2001 From: Date: Wed, 5 Dec 2007 05:08:26 +0900 Subject: [PATCH] Fix for hash not being cloned. --- lib/memcached.c | 1 + tests/output.res | 74 ------------------------------------------------ 2 files changed, 1 insertion(+), 74 deletions(-) diff --git a/lib/memcached.c b/lib/memcached.c index 5e189cda..9ee49d66 100644 --- a/lib/memcached.c +++ b/lib/memcached.c @@ -81,6 +81,7 @@ memcached_st *memcached_clone(memcached_st *clone, memcached_st *ptr) new_clone->recv_size= ptr->recv_size; new_clone->poll_timeout= ptr->poll_timeout; new_clone->distribution= ptr->distribution; + new_clone->hash= ptr->hash; return new_clone; } diff --git a/tests/output.res b/tests/output.res index 5338cf17..a1a8e656 100644 --- a/tests/output.res +++ b/tests/output.res @@ -1041,77 +1041,3 @@ Found key bytes_read Found key bytes_written Found key limit_maxbytes Found key threads -Error 0 -> SUCCESS -Error 1 -> FAILURE -Error 2 -> HOSTNAME LOOKUP FAILURE -Error 3 -> CONNECTION FAILURE -Error 4 -> CONNECTION BIND FAILURE -Error 5 -> WRITE FAILURE -Error 6 -> READ FAILURE -Error 7 -> UNKNOWN READ FAILURE -Error 8 -> PROTOCOL ERROR -Error 9 -> CLIENT ERROR -Error 10 -> SERVER ERROR -Error 11 -> CONNECTION SOCKET CREATE FAILURE -Error 12 -> CONNECTION DATA EXISTS -Error 13 -> CONNECTION DATA DOES NOT EXIST -Error 14 -> NOT STORED -Error 15 -> STORED -Error 16 -> NOT FOUND -Error 17 -> MEMORY ALLOCATION FAILURE -Error 18 -> PARTIAL READ -Error 19 -> SOME ERRORS WERE REPORTED -Error 20 -> NO SERVERS DEFINED -Error 21 -> SERVER END -Error 22 -> SERVER DELETE -Error 23 -> SERVER VALUE -Error 24 -> STAT VALUE -Error 25 -> SYSTEM ERROR -Error 26 -> COULD NOT OPEN UNIX SOCKET -Error 27 -> ACTION NOT SUPPORTED -Error 28 -> A KEY LENGTH OF ZERO WAS PROVIDED -Error 29 -> FETCH WAS NOT COMPLETED -Found key pid -Found key uptime -Found key time -Found key version -Found key pointer_size -Found key rusage_user -Found key rusage_system -Found key curr_items -Found key total_items -Found key bytes -Found key curr_connections -Found key total_connections -Found key connection_structures -Found key cmd_get -Found key cmd_set -Found key get_hits -Found key get_misses -Found key evictions -Found key bytes_read -Found key bytes_written -Found key limit_maxbytes -Found key threads -Found key pid -Found key uptime -Found key time -Found key version -Found key pointer_size -Found key rusage_user -Found key rusage_system -Found key curr_items -Found key total_items -Found key bytes -Found key curr_connections -Found key total_connections -Found key connection_structures -Found key cmd_get -Found key cmd_set -Found key get_hits -Found key get_misses -Found key evictions -Found key bytes_read -Found key bytes_written -Found key limit_maxbytes -Found key threads -- 2.30.2