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

Method instance_mut

src/compute-client/src/controller.rs:347–352  ·  view source on GitHub ↗

Return a mutable reference to the indicated compute instance.

(
        &mut self,
        id: ComputeInstanceId,
    )

Source from the content-addressed store, hash-verified

345
346 /// Return a mutable reference to the indicated compute instance.
347 fn instance_mut(
348 &mut self,
349 id: ComputeInstanceId,
350 ) -> Result<&mut InstanceState, InstanceMissing> {
351 self.instances.get_mut(&id).ok_or(InstanceMissing(id))
352 }
353
354 /// List the IDs of all collections in the identified compute instance.
355 pub fn collection_ids(

Callers 5

drop_replicaMethod · 0.80
create_dataflowMethod · 0.80
drop_collectionsMethod · 0.80
allow_writesMethod · 0.80

Calls 2

InstanceMissingClass · 0.85
get_mutMethod · 0.45

Tested by

no test coverage detected