30 #include <aerospike/ck/ck_pr.h>
40 typedef struct as_nodes_s {
70 typedef struct as_gc_item_s {
87 typedef struct as_cluster_s {
321 ck_pr_dec_32_zero(&nodes->
ref_count, &destroy);
384 ck_pr_dec_32_zero(&tables->
ref_count, &destroy);
423 struct as_cluster_s* cluster,
as_error* err,
const char*
ns,
const uint8_t* digest,
as_thread_pool thread_pool
uint32_t conn_pools_per_node
pthread_mutex_t tend_lock
as_node * as_partition_get_node(as_cluster *cluster, as_partition *p, as_policy_replica replica, bool use_master, bool cp_mode)
static void as_partition_tables_release(as_partition_tables *tables)
void(* as_release_fn)(void *value)
void as_cluster_change_password(as_cluster *cluster, const char *user, const char *password)
as_status as_cluster_create(as_config *config, as_error *err, as_cluster **cluster)
as_status as_cluster_get_node(struct as_cluster_s *cluster, as_error *err, const char *ns, const uint8_t *digest, as_policy_replica replica, bool master, as_node **node)
static as_partition_tables * as_partition_tables_reserve(as_cluster *cluster)
as_partition_tables * partition_tables
bool use_services_alternate
uint32_t async_max_conns_per_node
uint32_t max_conns_per_node
void as_cluster_get_node_names(as_cluster *cluster, int *n_nodes, char **node_names)
void as_cluster_remove_seed(as_cluster *cluster, const char *hostname, uint16_t port)
as_cluster_event_callback event_callback
static as_partition_table * as_cluster_get_partition_table(as_cluster *cluster, const char *ns)
uint32_t pipe_max_conns_per_node
struct as_shm_info_s * shm_info
void(* as_cluster_event_callback)(as_cluster_event *event)
pthread_mutex_t seed_lock
void as_cluster_add_seed(as_cluster *cluster, const char *hostname, const char *tls_name, uint16_t port)
void as_cluster_destroy(as_cluster *cluster)
as_node * as_node_get_by_name(as_cluster *cluster, const char *name)
as_partition_table * as_partition_tables_get(as_partition_tables *tables, const char *ns)
static as_nodes * as_nodes_reserve(as_cluster *cluster)
bool as_cluster_is_connected(as_cluster *cluster)
void * event_callback_udata
static void as_nodes_release(as_nodes *nodes)
as_node * as_node_get_random(as_cluster *cluster)