projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merging bzr://gaz.tangent.org/libmemcached/build/ to Build branch
[m6w6/libmemcached]
/
libmemcached
/
purge.cc
diff --git
a/libmemcached/purge.cc
b/libmemcached/purge.cc
index d80785ffb97b367c26cc7f92faacaabb09d37e65..6142e5fbf01095a35bf45cf1642292e8989a0d74 100644
(file)
--- a/
libmemcached/purge.cc
+++ b/
libmemcached/purge.cc
@@
-78,7
+78,6
@@
memcached_return_t memcached_purge(memcached_server_write_instance_st ptr)
{
memcached_result_st result;
memcached_result_st *result_ptr;
{
memcached_result_st result;
memcached_result_st *result_ptr;
- char buffer[SMALL_STRING_LEN];
/*
* We need to increase the timeout, because we might be waiting for
/*
* We need to increase the timeout, because we might be waiting for
@@
-94,9
+93,7
@@
memcached_return_t memcached_purge(memcached_server_write_instance_st ptr)
for (uint32_t x= 0; x < no_msg; x++)
{
memcached_result_reset(result_ptr);
for (uint32_t x= 0; x < no_msg; x++)
{
memcached_result_reset(result_ptr);
- memcached_return_t rc= memcached_read_one_response(ptr, buffer,
- sizeof (buffer),
- result_ptr);
+ memcached_return_t rc= memcached_read_one_response(ptr, result_ptr);
/*
* Purge doesn't care for what kind of command results that is received.
* The only kind of errors I care about if is I'm out of sync with the
/*
* Purge doesn't care for what kind of command results that is received.
* The only kind of errors I care about if is I'm out of sync with the
@@
-115,12
+112,11
@@
memcached_return_t memcached_purge(memcached_server_write_instance_st ptr)
if (ptr->root->callbacks != NULL)
{
memcached_callback_st cb = *ptr->root->callbacks;
if (ptr->root->callbacks != NULL)
{
memcached_callback_st cb = *ptr->root->callbacks;
- if (
rc == MEMCACHED_SUCCESS
)
+ if (
memcached_success(rc)
)
{
for (uint32_t y= 0; y < cb.number_of_callback; y++)
{
{
for (uint32_t y= 0; y < cb.number_of_callback; y++)
{
- rc = (*cb.callback[y])(ptr->root, result_ptr, cb.context);
- if (rc != MEMCACHED_SUCCESS)
+ if (memcached_fatal((*cb.callback[y])(ptr->root, result_ptr, cb.context)))
{
break;
}
{
break;
}