projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Set weight correctly.
[awesomized/libmemcached]
/
libmemcached
/
server.h
diff --git
a/libmemcached/server.h
b/libmemcached/server.h
index 4248e143f7c47e68d0a3c6c82d0a83b2e15458a9..b08720148f79476f1447a20bc5ca37939b00b34e 100644
(file)
--- a/
libmemcached/server.h
+++ b/
libmemcached/server.h
@@
-17,7
+17,6
@@
struct memcached_server_st {
struct {
bool is_allocated:1;
bool is_initialized:1;
struct {
bool is_allocated:1;
bool is_initialized:1;
- bool sockaddr_inited:1;
bool is_shutting_down:1;
} options;
uint32_t number_of_hosts;
bool is_shutting_down:1;
} options;
uint32_t number_of_hosts;
@@
-46,6
+45,7
@@
struct memcached_server_st {
size_t read_data_length;
size_t write_buffer_offset;
struct addrinfo *address_info;
size_t read_data_length;
size_t write_buffer_offset;
struct addrinfo *address_info;
+ struct addrinfo *address_info_next;
time_t next_retry;
const memcached_st *root;
uint64_t limit_maxbytes;
time_t next_retry;
const memcached_st *root;
uint64_t limit_maxbytes;
@@
-96,6
+96,13
@@
LIBMEMCACHED_API
memcached_return_t memcached_server_add(memcached_st *ptr,
const char *hostname, in_port_t port);
memcached_return_t memcached_server_add(memcached_st *ptr,
const char *hostname, in_port_t port);
+LIBMEMCACHED_LOCAL
+ memcached_return_t memcached_server_add_parsed(memcached_st *ptr,
+ const char *hostname,
+ size_t hostname_length,
+ in_port_t port,
+ uint32_t weight);
+
LIBMEMCACHED_API
memcached_return_t memcached_server_add_udp_with_weight(memcached_st *ptr,
const char *hostname,
LIBMEMCACHED_API
memcached_return_t memcached_server_add_udp_with_weight(memcached_st *ptr,
const char *hostname,