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;
request.message.header.request.bodylen= htonl((uint32_t) len);
if ((memcached_do(instance, request.bytes,
- sizeof(request.bytes), 0) != MEMCACHED_SUCCESS) ||
- (memcached_io_write(instance, args, len, 1) == -1))
+ sizeof(request.bytes), false) != MEMCACHED_SUCCESS) ||
+ (memcached_io_write(instance, args, len, true) == -1))
{
memcached_io_reset(instance);
return MEMCACHED_WRITE_FAILURE;
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;
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;
char **list;
size_t length= sizeof(memcached_stat_keys);
- list= libmemcached_malloc(memc_stat && memc_stat->root
- ? memc_stat->root
- : ptr,
- length);
+ (void)memc_stat;
- if (!list)
+ list= libmemcached_malloc(ptr, length);
+
+ if (! list)
{
*error= MEMCACHED_MEMORY_ALLOCATION_FAILURE;
return NULL;