From: Trond Norbye Date: Wed, 25 Feb 2009 10:13:26 +0000 (+0100) Subject: Fixed retrieval of io-watermarks X-Git-Tag: 0.27~26 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a1ca5506396b0d85d42d43c03dc036b216a00494;p=awesomized%2Flibmemcached Fixed retrieval of io-watermarks --- diff --git a/libmemcached/memcached_behavior.c b/libmemcached/memcached_behavior.c index 5a992b42..f2341550 100644 --- a/libmemcached/memcached_behavior.c +++ b/libmemcached/memcached_behavior.c @@ -152,11 +152,9 @@ uint64_t memcached_behavior_get(memcached_st *ptr, switch (flag) { case MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK: - temp_flag = ptr->io_msg_watermark; - break; + return ptr->io_msg_watermark; case MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK: - temp_flag = ptr->io_bytes_watermark; - break; + return ptr->io_bytes_watermark; case MEMCACHED_BEHAVIOR_BINARY_PROTOCOL: temp_flag= MEM_BINARY_PROTOCOL; break;