projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
36e8b81
)
We didn't catch client_Error.
author
Brian Aker
<brian@gaz>
Thu, 18 Mar 2010 22:28:09 +0000
(15:28 -0700)
committer
Brian Aker
<brian@gaz>
Thu, 18 Mar 2010 22:28:09 +0000
(15:28 -0700)
libmemcached/auto.c
patch
|
blob
|
history
diff --git
a/libmemcached/auto.c
b/libmemcached/auto.c
index fde81d47e3da67ceb19265a2d42cb1f203fee8e0..d94d26f102ed42c1d3b931f6a952105392776679 100644
(file)
--- a/
libmemcached/auto.c
+++ b/
libmemcached/auto.c
@@
-56,7
+56,12
@@
static memcached_return_t text_incr_decr(memcached_st *ptr,
use it. We still called memcached_response() though since it
worked its magic for non-blocking IO.
*/
- if (!strncmp(buffer, "ERROR\r\n", 7))
+ if (! strncmp(buffer, "ERROR\r\n", 7))
+ {
+ *value= 0;
+ rc= MEMCACHED_PROTOCOL_ERROR;
+ }
+ else if (! strncmp(buffer, "CLIENT_ERROR\r\n", 14))
{
*value= 0;
rc= MEMCACHED_PROTOCOL_ERROR;