projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updating memcached_server_instance_st structure.
[m6w6/libmemcached]
/
libmemcached
/
behavior.c
diff --git
a/libmemcached/behavior.c
b/libmemcached/behavior.c
index ba4db7377d8899d87d053748ad71082969c43952..886457a59a7867fcf31e18825aa7d8a037f2a020 100644
(file)
--- a/
libmemcached/behavior.c
+++ b/
libmemcached/behavior.c
@@
-170,7
+170,7
@@
memcached_return_t memcached_behavior_set(memcached_st *ptr,
break;
case MEMCACHED_BEHAVIOR_CORK:
{
break;
case MEMCACHED_BEHAVIOR_CORK:
{
- memcached_server_
instance_st *
instance;
+ memcached_server_
write_instance_st
instance;
bool action= set_flag(data);
if (action == false)
bool action= set_flag(data);
if (action == false)
@@
-230,6
+230,11
@@
memcached_return_t memcached_behavior_set(memcached_st *ptr,
return MEMCACHED_SUCCESS;
}
return MEMCACHED_SUCCESS;
}
+inline bool _is_auto_eject_host(const memcached_st *ptr)
+{
+ return ptr->flags.auto_eject_hosts;
+}
+
uint64_t memcached_behavior_get(memcached_st *ptr,
const memcached_behavior_t flag)
{
uint64_t memcached_behavior_get(memcached_st *ptr,
const memcached_behavior_t flag)
{
@@
-287,7
+292,7
@@
uint64_t memcached_behavior_get(memcached_st *ptr,
{
int sock_size= 0;
socklen_t sock_length= sizeof(int);
{
int sock_size= 0;
socklen_t sock_length= sizeof(int);
- memcached_server_
instance_st *
instance;
+ memcached_server_
write_instance_st
instance;
if (ptr->send_size != -1) // If value is -1 then we are using the default
return (uint64_t) ptr->send_size;
if (ptr->send_size != -1) // If value is -1 then we are using the default
return (uint64_t) ptr->send_size;
@@
-312,7
+317,7
@@
uint64_t memcached_behavior_get(memcached_st *ptr,
{
int sock_size= 0;
socklen_t sock_length= sizeof(int);
{
int sock_size= 0;
socklen_t sock_length= sizeof(int);
- memcached_server_
instance_st *
instance;
+ memcached_server_
write_instance_st
instance;
if (ptr->recv_size != -1) // If value is -1 then we are using the default
return (uint64_t) ptr->recv_size;
if (ptr->recv_size != -1) // If value is -1 then we are using the default
return (uint64_t) ptr->recv_size;