memcached_return rc;
WATCHPOINT_ASSERT(ptr->is_allocated != MEMCACHED_NOT_ALLOCATED);
- rc= memcached_io_close(ptr);
- WATCHPOINT_ASSERT(rc == MEMCACHED_SUCCESS);
+ memcached_quit_server(ptr, 0);
if (ptr->address_info)
{
new_clone->root= ptr->root;
host_reset(new_clone->root, new_clone,
- ptr->hostname, ptr->port,
+ ptr->hostname, ptr->port, ptr->weight,
ptr->type);
return new_clone;