X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fbehavior.c;h=2f5311e5a01ddac70d96cc9c36576983d3b66f79;hb=a8efa12d2d90c3777f3c33347fe002884be1185d;hp=7ca97e3a716cccb85a4deb9308f19fa50ce613e1;hpb=ff452398ec3114d6af77aa5d2d77f53b18d980e3;p=awesomized%2Flibmemcached diff --git a/libmemcached/behavior.c b/libmemcached/behavior.c index 7ca97e3a..2f5311e5 100644 --- a/libmemcached/behavior.c +++ b/libmemcached/behavior.c @@ -55,6 +55,7 @@ memcached_return_t memcached_behavior_set(memcached_st *ptr, ptr->server_failure_limit= (uint32_t)data; break; case MEMCACHED_BEHAVIOR_BINARY_PROTOCOL: + memcached_quit(ptr); // We need t shutdown all of the connections to make sure we do the correct protocol if (data) { ptr->flags.verify_key= false; @@ -238,7 +239,7 @@ memcached_return_t memcached_behavior_set(memcached_st *ptr, return MEMCACHED_SUCCESS; } -inline bool _is_auto_eject_host(const memcached_st *ptr) +bool _is_auto_eject_host(const memcached_st *ptr) { return ptr->flags.auto_eject_hosts; }