We didn't catch client_Error.
authorBrian Aker <brian@gaz>
Thu, 18 Mar 2010 22:28:09 +0000 (15:28 -0700)
committerBrian Aker <brian@gaz>
Thu, 18 Mar 2010 22:28:09 +0000 (15:28 -0700)
libmemcached/auto.c

index fde81d47e3da67ceb19265a2d42cb1f203fee8e0..d94d26f102ed42c1d3b931f6a952105392776679 100644 (file)
@@ -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;