From: Michael Wallner Date: Tue, 21 Jan 2020 15:31:48 +0000 (+0100) Subject: libmemcached: fix #35 (handling of MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS) X-Git-Tag: pre_cmake~23 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f30bca797720f53297e881c79935dbd13a93a068;p=awesomized%2Flibmemcached libmemcached: fix #35 (handling of MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS) --- 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;