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

Method insert_lock

src/adapter/src/session.rs:1728–1730  ·  view source on GitHub ↗

Adds a lock to this builder.

(&mut self, id: CatalogItemId, lock: tokio::sync::OwnedMutexGuard<()>)

Source from the content-addressed store, hash-verified

1726impl WriteLocksBuilder {
1727 /// Adds a lock to this builder.
1728 pub fn insert_lock(&mut self, id: CatalogItemId, lock: tokio::sync::OwnedMutexGuard<()>) {
1729 self.locks.insert(id, Some(lock));
1730 }
1731
1732 /// Finish this builder by returning either all of the necessary locks, or none of them.
1733 ///

Callers 3

try_deferredMethod · 0.80
group_commitMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected