projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
libmemcached-1.0: fix #57 (cinttypes/inttypes.h)
[m6w6/libmemcached]
/
libmemcached
/
instance.hpp
diff --git
a/libmemcached/instance.hpp
b/libmemcached/instance.hpp
index c76dc7ee1db708cca782a0db81b761de73f11133..63bf0835e58b937f39c473f835cf3427a306f78c 100644
(file)
--- a/
libmemcached/instance.hpp
+++ b/
libmemcached/instance.hpp
@@
-73,6
+73,7
@@
struct memcached_instance_st {
void mark_server_as_clean()
{
server_failure_counter= 0;
void mark_server_as_clean()
{
server_failure_counter= 0;
+ server_timeout_counter= 0;
next_retry= 0;
}
next_retry= 0;
}
@@
-147,6
+148,8
@@
struct memcached_instance_st {
uint32_t request_id;
uint32_t server_failure_counter;
uint64_t server_failure_counter_query_id;
uint32_t request_id;
uint32_t server_failure_counter;
uint64_t server_failure_counter_query_id;
+ uint32_t server_timeout_counter;
+ uint64_t server_timeout_counter_query_id;
uint32_t weight;
uint32_t version;
enum memcached_server_state_t state;
uint32_t weight;
uint32_t version;
enum memcached_server_state_t state;
@@
-162,7
+165,6
@@
struct memcached_instance_st {
memcached_connection_t type;
char *read_ptr;
size_t read_buffer_length;
memcached_connection_t type;
char *read_ptr;
size_t read_buffer_length;
- size_t read_data_length;
size_t write_buffer_offset;
struct addrinfo *address_info;
struct addrinfo *address_info_next;
size_t write_buffer_offset;
struct addrinfo *address_info;
struct addrinfo *address_info_next;