X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libmemcached%2Fdump.c;h=a79f95c5f55730065b9aa5c5fc639465fbee3ad8;hb=ec8d4f722f26999e44a59ad41a0eb4608bef2c7b;hp=4c1006e784cd6d46dfb636ac126dd1836d65758b;hpb=922f5df6af89c2813e703d256a4dcb7ddab8754f;p=m6w6%2Flibmemcached diff --git a/libmemcached/dump.c b/libmemcached/dump.c index 4c1006e7..a79f95c5 100644 --- a/libmemcached/dump.c +++ b/libmemcached/dump.c @@ -9,7 +9,7 @@ #include "common.h" static memcached_return_t ascii_dump(memcached_st *ptr, memcached_dump_fn *callback, void *context, uint32_t number_of_callbacks) { - memcached_return_t rc= 0; + memcached_return_t rc= MEMCACHED_SUCCESS; char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE]; size_t send_length; uint32_t server_key; @@ -23,7 +23,7 @@ static memcached_return_t ascii_dump(memcached_st *ptr, memcached_dump_fn *callb /* 256 I BELIEVE is the upper limit of slabs */ for (x= 0; x < 256; x++) { - send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, + send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, "stats cachedump %u 0 0\r\n", x); rc= memcached_do(&ptr->hosts[server_key], buffer, send_length, 1);