X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fstats.c;h=1f3ca5bf8700db57a0de8a1111df784a28de8c8a;hb=2c51ea585ccfbf3a14fed6d28f9115292ad0e6fc;hp=e38445ec1f5df2f37affc11aa3e401649189625e;hpb=9b767485048053ad0b4c2897a0d3784aa6e9fe10;p=m6w6%2Flibmemcached diff --git a/libmemcached/stats.c b/libmemcached/stats.c index e38445ec..1f3ca5bf 100644 --- a/libmemcached/stats.c +++ b/libmemcached/stats.c @@ -151,7 +151,8 @@ static memcached_return_t set_data(memcached_stat_st *memc_stat, char *key, char strcmp("listen_disabled_num", key) == 0 || strcmp("conn_yields", key) == 0 || strcmp("auth_cmds", key) == 0 || - strcmp("auth_errors", key) == 0)) + strcmp("auth_errors", key) == 0 || + strcmp("reclaimed", key) == 0)) { WATCHPOINT_STRING(key); return MEMCACHED_UNKNOWN_STAT_KEY; @@ -250,7 +251,7 @@ static memcached_return_t binary_stats_fetch(memcached_stat_st *memc_stat, request.message.header.request.bodylen= htonl((uint32_t) len); if ((memcached_do(instance, request.bytes, - sizeof(request.bytes), 0) != MEMCACHED_SUCCESS) || + sizeof(request.bytes), false) != MEMCACHED_SUCCESS) || (memcached_io_write(instance, args, len, true) == -1)) { memcached_io_reset(instance); @@ -260,7 +261,7 @@ static memcached_return_t binary_stats_fetch(memcached_stat_st *memc_stat, else { if (memcached_do(instance, request.bytes, - sizeof(request.bytes), 1) != MEMCACHED_SUCCESS) + sizeof(request.bytes), true) != MEMCACHED_SUCCESS) { memcached_io_reset(instance); return MEMCACHED_WRITE_FAILURE; @@ -314,7 +315,7 @@ static memcached_return_t ascii_stats_fetch(memcached_stat_st *memc_stat, if (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE) return MEMCACHED_WRITE_FAILURE; - rc= memcached_do(instance, buffer, send_length, 1); + rc= memcached_do(instance, buffer, send_length, true); if (rc != MEMCACHED_SUCCESS) goto error;