projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
First pass in cleaning up instance.
[awesomized/libmemcached]
/
libmemcached
/
flush.cc
diff --git
a/libmemcached/flush.cc
b/libmemcached/flush.cc
index 6afcce9af73d5e886c266df30a6e8d1033bff824..7a102eab2cb96bbdf4c3d141e2213226c905f867 100644
(file)
--- a/
libmemcached/flush.cc
+++ b/
libmemcached/flush.cc
@@
-52,7
+52,7
@@
static memcached_return_t memcached_flush_binary(memcached_st *ptr,
for (uint32_t x= 0; x < memcached_server_count(ptr); x++)
{
for (uint32_t x= 0; x < memcached_server_count(ptr); x++)
{
-
memcached_server_write_instance_st instance= memcached_server
_instance_fetch(ptr, x);
+
org::libmemcached::Instance* instance= memcached
_instance_fetch(ptr, x);
initialize_binary_request(instance, request.message.header);
if (reply)
initialize_binary_request(instance, request.message.header);
if (reply)
@@
-84,9
+84,9
@@
static memcached_return_t memcached_flush_binary(memcached_st *ptr,
for (uint32_t x= 0; x < memcached_server_count(ptr); x++)
{
for (uint32_t x= 0; x < memcached_server_count(ptr); x++)
{
-
memcached_server_write_instance_st instance= memcached_server
_instance_fetch(ptr, x);
+
org::libmemcached::Instance* instance= memcached
_instance_fetch(ptr, x);
- if (
memcached_instance_response_count(instance
) > 0)
+ if (
instance->response_count(
) > 0)
{
(void)memcached_response(instance, NULL, 0, NULL);
}
{
(void)memcached_response(instance, NULL, 0, NULL);
}
@@
-115,13
+115,13
@@
static memcached_return_t memcached_flush_textual(memcached_st *ptr,
memcached_return_t rc= MEMCACHED_SUCCESS;
for (uint32_t x= 0; x < memcached_server_count(ptr); x++)
{
memcached_return_t rc= MEMCACHED_SUCCESS;
for (uint32_t x= 0; x < memcached_server_count(ptr); x++)
{
-
memcached_server_write_instance_st instance= memcached_server
_instance_fetch(ptr, x);
+
org::libmemcached::Instance* instance= memcached
_instance_fetch(ptr, x);
libmemcached_io_vector_st vector[]=
{
{ NULL, 0 },
{ memcached_literal_param("flush_all ") },
libmemcached_io_vector_st vector[]=
{
{ NULL, 0 },
{ memcached_literal_param("flush_all ") },
- { buffer, s
end_length
},
+ { buffer, s
ize_t(send_length)
},
{ " noreply", reply ? 0 : memcached_literal_param_size(" noreply") },
{ memcached_literal_param("\r\n") }
};
{ " noreply", reply ? 0 : memcached_literal_param_size(" noreply") },
{ memcached_literal_param("\r\n") }
};