3 memcached_return_t
memcached_verbosity(memcached_st
*ptr
, uint32_t verbosity
)
8 char buffer
[MEMCACHED_DEFAULT_COMMAND_SIZE
];
10 send_length
= (size_t) snprintf(buffer
, MEMCACHED_DEFAULT_COMMAND_SIZE
,
11 "verbosity %u\r\n", verbosity
);
12 unlikely (send_length
>= MEMCACHED_DEFAULT_COMMAND_SIZE
)
13 return MEMCACHED_WRITE_FAILURE
;
15 rc
= MEMCACHED_SUCCESS
;
16 for (x
= 0; x
< memcached_server_count(ptr
); x
++)
18 memcached_return_t rrc
;
19 memcached_server_instance_st
*instance
=
20 memcached_server_instance_fetch(ptr
, x
);
22 rrc
= memcached_do(instance
, buffer
, send_length
, 1);
23 if (rrc
!= MEMCACHED_SUCCESS
)
25 rc
= MEMCACHED_SOME_ERRORS
;
29 unlikely (ptr
->flags
.use_udp
)
32 rrc
= memcached_response(instance
, buffer
, MEMCACHED_DEFAULT_COMMAND_SIZE
, NULL
);
33 if (rrc
!= MEMCACHED_SUCCESS
)
34 rc
= MEMCACHED_SOME_ERRORS
;