projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
docs: fix #42; fix #43 [ci skip]
[awesomized/libmemcached]
/
libmemcached
/
purge.cc
diff --git
a/libmemcached/purge.cc
b/libmemcached/purge.cc
index b1390d9c1aa502339764effc0a1f0cc1038b7494..4646708eb1da540e8011367ce8db702316027c24 100644
(file)
--- a/
libmemcached/purge.cc
+++ b/
libmemcached/purge.cc
@@
-79,7
+79,7
@@
private:
int32_t& _origin;
};
int32_t& _origin;
};
-bool memcached_purge(
org::libmemcached::Instance
* ptr)
+bool memcached_purge(
memcached_instance_st
* ptr)
{
Memcached *root= (Memcached *)ptr->root;
{
Memcached *root= (Memcached *)ptr->root;
@@
-111,8
+111,8
@@
bool memcached_purge(org::libmemcached::Instance* ptr)
WATCHPOINT_ASSERT(ptr->fd != INVALID_SOCKET);
bool is_successful= true;
WATCHPOINT_ASSERT(ptr->fd != INVALID_SOCKET);
bool is_successful= true;
- uint32_t no_msg= memcached_server_response_count(ptr)
- 1
;
- if (no_msg >
0
)
+ uint32_t no_msg= memcached_server_response_count(ptr);
+ if (no_msg >
1
)
{
memcached_result_st result;
{
memcached_result_st result;
@@
-126,7
+126,7
@@
bool memcached_purge(org::libmemcached::Instance* ptr)
memcached_result_st* result_ptr= memcached_result_create(root, &result);
assert(result_ptr);
memcached_result_st* result_ptr= memcached_result_create(root, &result);
assert(result_ptr);
- for (uint32_t x= 0; x < no_msg; x++)
+ for (uint32_t x= 0; x < no_msg
- 1
; x++)
{
memcached_result_reset(result_ptr);
memcached_return_t rc= memcached_read_one_response(ptr, result_ptr);
{
memcached_result_reset(result_ptr);
memcached_return_t rc= memcached_read_one_response(ptr, result_ptr);