projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updated for custom hash functions/setting functions.
[awesomized/libmemcached]
/
libmemcached
/
verbosity.c
diff --git
a/libmemcached/verbosity.c
b/libmemcached/verbosity.c
index 46b120e9371c204a8c8ed65491078c5ea42f8d6f..7c7b7ae190bd6d2531915580cf52a00c529d047e 100644
(file)
--- a/
libmemcached/verbosity.c
+++ b/
libmemcached/verbosity.c
@@
-1,8
+1,8
@@
#include "common.h"
#include "common.h"
-memcached_return_t memcached_verbosity(memcached_st *ptr, u
nsigned in
t verbosity)
+memcached_return_t memcached_verbosity(memcached_st *ptr, u
int32_
t verbosity)
{
{
- u
nsigned in
t x;
+ u
int32_
t x;
size_t send_length;
memcached_return_t rc;
char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
size_t send_length;
memcached_return_t rc;
char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
@@
-16,8
+16,10
@@
memcached_return_t memcached_verbosity(memcached_st *ptr, unsigned int verbosity
for (x= 0; x < memcached_server_count(ptr); x++)
{
memcached_return_t rrc;
for (x= 0; x < memcached_server_count(ptr); x++)
{
memcached_return_t rrc;
+ memcached_server_instance_st *instance=
+ memcached_server_instance_fetch(ptr, x);
- rrc= memcached_do(
&ptr->hosts[x]
, buffer, send_length, 1);
+ rrc= memcached_do(
instance
, buffer, send_length, 1);
if (rrc != MEMCACHED_SUCCESS)
{
rc= MEMCACHED_SOME_ERRORS;
if (rrc != MEMCACHED_SUCCESS)
{
rc= MEMCACHED_SOME_ERRORS;
@@
-27,7
+29,7
@@
memcached_return_t memcached_verbosity(memcached_st *ptr, unsigned int verbosity
unlikely (ptr->flags.use_udp)
continue;
unlikely (ptr->flags.use_udp)
continue;
- rrc= memcached_response(
&ptr->hosts[x]
, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
+ rrc= memcached_response(
instance
, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
if (rrc != MEMCACHED_SUCCESS)
rc= MEMCACHED_SOME_ERRORS;
}
if (rrc != MEMCACHED_SUCCESS)
rc= MEMCACHED_SOME_ERRORS;
}