summaryrefslogtreecommitdiff
path: root/libmemcached/response.cc
diff options
context:
space:
mode:
authorBrian Aker <brian@tangent.org>2012-01-25 23:12:47 -0800
committerBrian Aker <brian@tangent.org>2012-01-25 23:12:47 -0800
commit7f3f3d165c47d2722cc7a57b618cee7ed14557b3 (patch)
tree7dcac8e432062a3c37eb0998b67c31e28b057803 /libmemcached/response.cc
parent387c65c94bec4333da574771fc82a40deabbc3e2 (diff)
downloadlibmemcached-7f3f3d165c47d2722cc7a57b618cee7ed14557b3.tar.gz
This fixes memcached_dump(), and creates a couple of additional tests for memcached_stat_execute().
Diffstat (limited to 'libmemcached/response.cc')
-rw-r--r--libmemcached/response.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmemcached/response.cc b/libmemcached/response.cc
index 7af52ce4..ac1fb057 100644
--- a/libmemcached/response.cc
+++ b/libmemcached/response.cc
@@ -319,6 +319,11 @@ static memcached_return_t textual_read_one_response(memcached_server_write_insta
return MEMCACHED_PROTOCOL_ERROR;
}
#endif
+ // ERROR
+ else if (buffer[1] == 'R' and buffer[2] == 'R' and buffer[3] == 'O' and buffer[4] == 'R')
+ {
+ return MEMCACHED_ERROR;
+ }
// EXISTS
else if (buffer[1] == 'X' and buffer[2] == 'I' and buffer[3] == 'S' and buffer[4] == 'T' and buffer[5] == 'S')
{
@@ -781,6 +786,7 @@ memcached_return_t memcached_response(memcached_server_write_instance_st ptr,
rc != MEMCACHED_DELETED and
rc != MEMCACHED_E2BIG and
rc != MEMCACHED_END and
+ rc != MEMCACHED_ERROR and
rc != MEMCACHED_ITEM and
rc != MEMCACHED_NOTFOUND and
rc != MEMCACHED_NOTSTORED and