#include "common.h"
static inline void _result_init(memcached_result_st *self,
- const memcached_st *memc)
+ memcached_st *memc)
{
self->item_flags= 0;
self->item_expiration= 0;
ptr->options.is_initialized= true;
- _result_init(ptr, memc);
+ _result_init(ptr, (memcached_st *)memc);
- ptr->root= memc;
WATCHPOINT_SET(ptr->value.options.is_initialized= false);
memcached_string_create(memc, &ptr->value, 0);
WATCHPOINT_ASSERT_INITIALIZED(&ptr->value);
const char *value,
size_t length)
{
- return memcached_string_append(&ptr->value, value, length);
+ memcached_return_t rc= memcached_string_append(&ptr->value, value, length);
+
+ if (rc == MEMCACHED_MEMORY_ALLOCATION_FAILURE)
+ {
+ memcached_set_errno(ptr->root, errno, NULL);
+ }
+
+ return rc;
}
const char *memcached_result_key_value(const memcached_result_st *self)