MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / commit_mutable_tx

Method commit_mutable_tx

crates/core/src/host/instance_env.rs:770–773  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

768 // on `tokio::runtime::Handle::try_current()` before being able to run the `get_tx()` check.
769
770 pub fn commit_mutable_tx(&mut self) -> Result<(), NodesError> {
771 let tx = self.take_mutable_tx_for_commit()?;
772 self.commit_procedure_tx(tx)
773 }
774
775 /// Extract an anonymous mutable tx so callers can perform extra work before commit.
776 pub fn take_mutable_tx_for_commit(&mut self) -> Result<MutTxId, NodesError> {

Callers

nothing calls this directly

Calls 2

commit_procedure_txMethod · 0.80

Tested by

no test coverage detected