projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Add test case for situation where callback shouldn't be set because of behavior settings.
[awesomized/libmemcached]
/
libmemcached
/
auto.cc
diff --git
a/libmemcached/auto.cc
b/libmemcached/auto.cc
index f06d9ca06242387247bfbefb42e8cad782d0685b..d0b7dd4813bb3116738f5713d4e048b68496954b 100644
(file)
--- a/
libmemcached/auto.cc
+++ b/
libmemcached/auto.cc
@@
-75,6
+75,11
@@
static memcached_return_t text_incr_decr(memcached_st *ptr,
rc= memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
rc= memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, NULL);
+ if (rc != MEMCACHED_SUCCESS)
+ {
+ return memcached_set_error(*instance, rc, MEMCACHED_AT);
+ }
+
/*
So why recheck responce? Because the protocol is brain dead :)
The number returned might end up equaling one of the string
/*
So why recheck responce? Because the protocol is brain dead :)
The number returned might end up equaling one of the string