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

Method is_bootstrapped

nodedb-cluster/src/catalog/core.rs:109–111  ·  view source on GitHub ↗

Check if this catalog has been bootstrapped (has a cluster_id).

(&self)

Source from the content-addressed store, hash-verified

107
108 /// Check if this catalog has been bootstrapped (has a cluster_id).
109 pub fn is_bootstrapped(&self) -> Result<bool> {
110 self.load_cluster_id().map(|id| id.is_some())
111 }
112
113 /// Persist the cluster epoch (the leader-bumped monotonic fence
114 /// token stamped on every Raft RPC). Overwrites any prior value.

Callers 1

start_clusterFunction · 0.80

Calls 1

load_cluster_idMethod · 0.80

Tested by

no test coverage detected