memcached_return_t rc= _read_one_response(ptr, buffer, buffer_length, junked_result_ptr);
// @TODO should we return an error on another but a bad read case?
- if (
- rc != MEMCACHED_DATA_EXISTS and
- 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
- rc != MEMCACHED_SERVER_ERROR and
- rc != MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE and
- rc != MEMCACHED_STAT and
- rc != MEMCACHED_STORED and
- rc != MEMCACHED_SUCCESS and
- rc != MEMCACHED_VALUE
- )
+ if (memcached_fatal(rc))
{
memcached_result_free(junked_result_ptr);
return rc;