projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
0f1151c
)
libmemcached: fix #35 (handling of MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS)
author
Michael Wallner
<mike@php.net>
Tue, 21 Jan 2020 15:31:48 +0000
(16:31 +0100)
committer
Michael Wallner
<mike@php.net>
Tue, 21 Jan 2020 15:43:42 +0000
(16:43 +0100)
libmemcached/behavior.cc
patch
|
blob
|
history
diff --git
a/libmemcached/behavior.cc
b/libmemcached/behavior.cc
index f5e1f0ac4691957df388e4d70d0814d029fbfff4..7536248e214f2db040a83444b5a7276691d3209c 100644
(file)
--- a/
libmemcached/behavior.cc
+++ b/
libmemcached/behavior.cc
@@
-106,7
+106,7
@@
memcached_return_t memcached_behavior_set(memcached_st *shell,
case MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS:
ptr->flags.auto_eject_hosts= bool(data);
- /* fall through */
+ break;
case MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT:
if (data == 0)
@@
-376,6
+376,8
@@
uint64_t memcached_behavior_get(memcached_st *shell,
return hashkit_get_function(&ptr->hashkit);
case MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS:
+ return ptr->flags.auto_eject_hosts;
+
case MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT:
return ptr->server_failure_limit;