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

Method put_crdt_inode_trunk

atomic-core/src/pristine/txn/write/mod.rs:2167–2171  ·  view source on GitHub ↗
(&mut self, inode: u64, trunk_key: &[u8; 12])

Source from the content-addressed store, hash-verified

2165 }
2166
2167 fn put_crdt_inode_trunk(&mut self, inode: u64, trunk_key: &[u8; 12]) -> PristineResult<()> {
2168 let mut table = self.txn.open_table(INODE_TRUNK)?;
2169 table.insert(inode, trunk_key)?;
2170 Ok(())
2171 }
2172
2173 fn put_crdt_path_trunk(&mut self, path: &str, trunk_key: &[u8; 12]) -> PristineResult<()> {
2174 let mut table = self.txn.open_table(PATH_TRUNK)?;

Calls 1

insertMethod · 0.45