MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / open_inode_graph_table

Method open_inode_graph_table

atomic-core/src/pristine/txn/read.rs:124–128  ·  view source on GitHub ↗

Open the INODE_GRAPH table for shared use across multiple operations. The returned handle can be passed to [`InodePreloadTxn::from_table`] to avoid reopening the table for each file during parallel materialize.

(
        &self,
    )

Source from the content-addressed store, hash-verified

122 /// The returned handle can be passed to [`InodePreloadTxn::from_table`]
123 /// to avoid reopening the table for each file during parallel materialize.
124 pub fn open_inode_graph_table(
125 &self,
126 ) -> PristineResult<redb::ReadOnlyMultimapTable<&'static [u8; 32], &'static [u8; 24]>> {
127 Ok(self.txn.open_multimap_table(INODE_GRAPH)?)
128 }
129
130 /// Enumerate every `(inode, path)` pair in `REV_TREE`.
131 ///

Calls

no outgoing calls

Tested by

no test coverage detected