Go to the source code of this file.
#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.
#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.
#define AS_MAX_REPLICATION_FACTOR 3 |
Maximum number of stored replicas in partition map.
Definition at line 45 of file as_partition.h.
static uint32_t as_partition_getid |
( |
const uint8_t * |
digest, |
|
|
uint32_t |
n_partitions |
|
) |
| |
|
inlinestaticprivate |
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.
Destroy partition tables.
void as_partition_tables_dump |
( |
struct as_cluster_s * |
cluster | ) |
|
|
private |
Log all partition maps in the cluster.
Get partition table given namespace.