}
string_ptr= memcached_string_create(ptr, &ptr->result_buffer, 0);
WATCHPOINT_ASSERT(string_ptr);
- ptr->poll_timeout= -1;
+ ptr->poll_timeout= MEMCACHED_DEFAILT_TIMEOUT;
ptr->distribution= MEMCACHED_DISTRIBUTION_MODULO;
return ptr;
*/
memcached_st *memcached_clone(memcached_st *clone, memcached_st *ptr)
{
- memcached_return rc;
+ memcached_return rc= MEMCACHED_SUCCESS;
memcached_st *new_clone;
if (ptr == NULL)
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;
}