MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / replica_exists

Method replica_exists

src/compute-client/src/controller/instance.rs:442–444  ·  view source on GitHub ↗

Returns whether the identified replica exists.

(&self, id: ReplicaId)

Source from the content-addressed store, hash-verified

440
441 /// Returns whether the identified replica exists.
442 fn replica_exists(&self, id: ReplicaId) -> bool {
443 self.replicas.contains_key(&id)
444 }
445
446 /// Return the IDs of pending peeks targeting the specified replica.
447 fn peeks_targeting(&self, replica_id: ReplicaId) -> impl Iterator<Item = (Uuid, &PendingPeek)> {

Callers 3

add_replicaMethod · 0.80
create_dataflowMethod · 0.80
peekMethod · 0.80

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected