{
if (memcached_server_count(ptr))
{
-
qsort(memcached_instance_list(ptr), memcached_server_count(ptr), sizeof(org::libmemcached::Instance), compare_servers);
- org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, 0);
- instance->number_of_hosts= memcached_server_count(ptr);
}
}
ptr->number_of_hosts++;
- // @note we place the count in the bottom of the server list
- instance= memcached_instance_fetch(ptr, 0);
- memcached_instance_set_count(instance, memcached_server_count(ptr));
-
return run_distribution(ptr);
}
ptr->number_of_hosts++;
}
- // Provides backwards compatibility with server list.
- {
- org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, 0);
- instance->number_of_hosts= memcached_server_count(ptr);
- }
-
return run_distribution(ptr);
}
ptr->number_of_hosts++;
}
- // Provides backwards compatibility with server list.
- {
- org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, 0);
- instance->number_of_hosts= memcached_server_count(ptr);
- }
-
return run_distribution(ptr);
}
{
self->options.is_shutting_down= false;
self->options.is_dead= false;
- self->number_of_hosts= 0;
self->cursor_active_= 0;
self->port_= port;
self->fd= INVALID_SOCKET;
return (memcached_server_instance_st)self->last_disconnected_server;
}
-uint32_t memcached_instance_set_count(org::libmemcached::Instance* servers, uint32_t count)
-{
- WATCHPOINT_ASSERT(servers);
- if (servers == NULL)
- {
- return 0;
- }
-
- return servers->number_of_hosts= count;
-}
-
const char *memcached_instance_name(const memcached_server_instance_st self)
{
WATCHPOINT_ASSERT(self);
uint32_t memcached_instance_response_count(const org::libmemcached::Instance* self);
-uint32_t memcached_instance_set_count(org::libmemcached::Instance *servers, uint32_t count);
-
void __instance_free(org::libmemcached::Instance *);