Sha256: 24ce53edff1b33641688aeadd4a573b59f5eac2a05140c51f31128227b67160e
Contents?: true
Size: 943 Bytes
Versions: 27
Compression:
Stored size: 943 Bytes
Contents
#include "common.h" memcached_return memcached_verbosity(memcached_st *ptr, unsigned int verbosity) { unsigned int x; size_t send_length; memcached_return rc; char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE]; send_length= (size_t) snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, "verbosity %u\r\n", verbosity); unlikely (send_length >= MEMCACHED_DEFAULT_COMMAND_SIZE) return MEMCACHED_WRITE_FAILURE; rc= MEMCACHED_SUCCESS; for (x= 0; x < ptr->number_of_hosts; x++) { memcached_return rrc; rrc= memcached_do(&ptr->hosts[x], buffer, send_length, 1); if (rrc != MEMCACHED_SUCCESS) { rc= MEMCACHED_SOME_ERRORS; continue; } unlikely (ptr->flags & MEM_USE_UDP) continue; rrc= memcached_response(&ptr->hosts[x], buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL); if (rrc != MEMCACHED_SUCCESS) rc= MEMCACHED_SOME_ERRORS; } return rc; }
Version data entries
27 entries across 27 versions & 4 rubygems