projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in scanner code.
[awesomized/libmemcached]
/
libmemcached
/
server.c
diff --git
a/libmemcached/server.c
b/libmemcached/server.c
index ea44092cc43d12068b6bc97839355599c0f664d1..b446d13155bc33456e151c3c92012044b884c253 100644
(file)
--- a/
libmemcached/server.c
+++ b/
libmemcached/server.c
@@
-19,6
+19,7
@@
static inline void _server_init(memcached_server_st *self, const memcached_st *r
uint32_t weight, memcached_connection_t type)
{
self->options.is_shutting_down= false;
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->number_of_hosts= 0;
self->cursor_active= 0;
self->port= port;
@@
-27,8
+28,6
@@
static inline void _server_init(memcached_server_st *self, const memcached_st *r
self->io_bytes_sent= 0;
self->server_failure_counter= 0;
self->weight= weight ? weight : 1; // 1 is the default weight value
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;
WATCHPOINT_SET(self->io_wait_count.read= 0);
WATCHPOINT_SET(self->io_wait_count.write= 0);
self->major_version= UINT8_MAX;