Go to the source code of this file.
◆ AS_MAX_NAMESPACE_SIZE
#define AS_MAX_NAMESPACE_SIZE 32 |
Maximum namespace size including null byte. Effective maximum length is 31.
Definition at line 40 of file as_partition.h.
◆ AS_MAX_NAMESPACES
#define AS_MAX_NAMESPACES 128 |
If the server removes then adds namespaces, the client may contain more than the server max of 32.
Definition at line 35 of file as_partition.h.
◆ AS_MAX_REPLICATION_FACTOR
#define AS_MAX_REPLICATION_FACTOR 3 |
Maximum number of stored replicas in partition map.
Definition at line 45 of file as_partition.h.
◆ as_partition_getid()
static uint32_t as_partition_getid |
( |
const uint8_t * | digest, |
|
|
uint32_t | n_partitions ) |
|
inlinestaticprivate |
◆ as_partition_info_init()
as_status as_partition_info_init |
( |
as_partition_info * | pi, |
|
|
struct as_cluster_s * | cluster, |
|
|
struct as_error_s * | err, |
|
|
const struct as_key_s * | key ) |
|
private |
Initialize partition info given key. If this function succeeds and not using shared memory, as_partition_tables_release() must be called when done with partition.
◆ as_partition_tables_destroy()
Destroy partition tables.
◆ as_partition_tables_dump()
void as_partition_tables_dump |
( |
struct as_cluster_s * | cluster | ) |
|
|
private |
Log all partition maps in the cluster.
◆ as_partition_tables_get()
Get partition table given namespace.