.auto_eject_hosts= false,
.binary_protocol= false,
.buffer_requests= false,
- .hash_with_prefix_key= false,
+ .hash_with_namespace= false,
.no_block= false,
.no_reply= false,
.randomize_replica_read= false,
self->flags.auto_eject_hosts= false;
self->flags.binary_protocol= false;
self->flags.buffer_requests= false;
- self->flags.hash_with_prefix_key= false;
+ self->flags.hash_with_namespace= false;
self->flags.no_block= false;
self->flags.no_reply= false;
self->flags.randomize_replica_read= false;
self->sasl.is_allocated= false;
self->error_messages= NULL;
- self->prefix_key= NULL;
+ self->_namespace= NULL;
self->configure.initial_pool_size= 1;
self->configure.max_pool_size= 1;
self->configure.version= -1;
libmemcached_free(ptr, ptr->ketama.continuum);
- memcached_array_free(ptr->prefix_key);
- ptr->prefix_key= NULL;
+ memcached_array_free(ptr->_namespace);
+ ptr->_namespace= NULL;
- memcached_error_free(ptr);
+ memcached_error_free(*ptr);
- if (ptr->sasl.callbacks)
+ if (LIBMEMCACHED_WITH_SASL_SUPPORT and ptr->sasl.callbacks)
{
-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
memcached_destroy_sasl_auth_data(ptr);
-#endif
}
if (release_st)
}
- new_clone->prefix_key= memcached_array_clone(new_clone, source->prefix_key);
- new_clone->configure.filename= memcached_array_clone(new_clone, source->prefix_key);
+ new_clone->_namespace= memcached_array_clone(new_clone, source->_namespace);
+ new_clone->configure.filename= memcached_array_clone(new_clone, source->_namespace);
-#ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
- if (source->sasl.callbacks)
+ if (LIBMEMCACHED_WITH_SASL_SUPPORT and source->sasl.callbacks)
{
if (memcached_clone_sasl(new_clone, source) != MEMCACHED_SUCCESS)
{
return NULL;
}
}
-#endif
rc= run_distribution(new_clone);