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

Method missing_locks

src/adapter/src/session.rs:1827–1838  ·  view source on GitHub ↗

Returns the collections we're missing locks for, if any.

(
        &self,
        writes: impl Iterator<Item = CatalogItemId>,
    )

Source from the content-addressed store, hash-verified

1825
1826 /// Returns the collections we're missing locks for, if any.
1827 pub fn missing_locks(
1828 &self,
1829 writes: impl Iterator<Item = CatalogItemId>,
1830 ) -> BTreeSet<CatalogItemId> {
1831 let mut missing = BTreeSet::new();
1832 for write in writes {
1833 if !self.locks.contains_key(&write) {
1834 missing.insert(write);
1835 }
1836 }
1837 missing
1838 }
1839}
1840
1841impl Drop for GroupCommitWriteLocks {

Callers 1

group_commitMethod · 0.80

Calls 2

contains_keyMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected