uint32_t weight, memcached_connection_t type)
{
self->options.is_shutting_down= false;
+ self->options.is_dead= false;
self->number_of_hosts= 0;
self->cursor_active= 0;
self->port= port;
self->io_bytes_sent= 0;
self->server_failure_counter= 0;
self->weight= weight ? weight : 1; // 1 is the default weight value
- self->state.is_corked= false;
- self->state.is_dead= false;
WATCHPOINT_SET(self->io_wait_count.read= 0);
WATCHPOINT_SET(self->io_wait_count.write= 0);
self->major_version= UINT8_MAX;
bool is_allocated:1;
bool is_initialized:1;
bool is_shutting_down:1;
+ bool is_dead:1;
} options;
uint32_t number_of_hosts;
uint32_t cursor_active;
uint32_t io_bytes_sent; /* # bytes sent since last read */
uint32_t server_failure_counter;
uint32_t weight;
- struct { // Place any "state" sort variables in here.
- bool is_corked:1;
- bool is_dead:1;
- } state;
struct {
uint32_t read;
uint32_t write;
uint32_t count = memcached_server_count(memc);
// Do not do this in your code, it is not supported.
- memc->servers[1].state.is_dead= true;
+ memc->servers[1].options.is_dead= true;
memc->state.is_time_for_rebuild= true;
uint32_t new_count= memcached_server_count(memc);