MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / expected_vshard

Function expected_vshard

nodedb-cluster/src/distributed_array/partition.rs:157–159  ·  view source on GitHub ↗

Helper: compute expected vshard for a given hilbert prefix and prefix_bits.

(prefix: u64, prefix_bits: u8)

Source from the content-addressed store, hash-verified

155
156 // Helper: compute expected vshard for a given hilbert prefix and prefix_bits.
157 fn expected_vshard(prefix: u64, prefix_bits: u8) -> u32 {
158 array_vshard_for_tile(prefix, prefix_bits).unwrap()
159 }
160
161 #[test]
162 fn partition_put_empty_returns_empty() {

Callers

nothing calls this directly

Calls 1

array_vshard_for_tileFunction · 0.85

Tested by

no test coverage detected