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

Method min_ack_hlc

nodedb/src/control/array_sync/ack_registry.rs:234–237  ·  view source on GitHub ↗

Return the minimum ack HLC across all replicas for `array`. Returns `None` if no acks have been recorded for this array (GC must not proceed — it could discard ops that no replica has seen).

(&self, array: &str)

Source from the content-addressed store, hash-verified

232 /// Returns `None` if no acks have been recorded for this array (GC must
233 /// not proceed — it could discard ops that no replica has seen).
234 pub fn min_ack_hlc(&self, array: &str) -> Option<Hlc> {
235 let cache = self.cache.read().unwrap_or_else(|p| p.into_inner());
236 cache.get(array)?.min_ack_hlc()
237 }
238
239 /// Return a snapshot of the full [`AckVector`] for `array`.
240 ///

Callers 2

run_gcFunction · 0.45
serveMethod · 0.45

Calls 2

readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected