- return memcached_response(ptr, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, server_key);
+ if ((ptr->flags & MEM_NO_BLOCK))
+ {
+ rc= MEMCACHED_SUCCESS;
+ memcached_server_response_increment(ptr, server_key);
+ }
+ else
+ {
+ rc= memcached_response(ptr, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, server_key);
+ if (rc == MEMCACHED_DELETED)
+ rc= MEMCACHED_SUCCESS;
+ }
+
+error:
+ LIBMEMCACHED_MEMCACHED_DELETE_END();
+ return rc;