From f30bca797720f53297e881c79935dbd13a93a068 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 21 Jan 2020 16:31:48 +0100 Subject: [PATCH] libmemcached: fix #35 (handling of MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS) --- libmemcached/behavior.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmemcached/behavior.cc b/libmemcached/behavior.cc index f5e1f0ac..7536248e 100644 --- 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; -- 2.30.2