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

Method put_crdt_trunk

atomic-core/src/pristine/txn/write/mod.rs:1053–1057  ·  view source on GitHub ↗
(&mut self, key: &[u8; 12], value: &[u8])

Source from the content-addressed store, hash-verified

1051 // below (which `MutTxnT` requires as a supertrait).
1052
1053 fn put_crdt_trunk(&mut self, key: &[u8; 12], value: &[u8]) -> PristineResult<()> {
1054 let mut table = self.txn.open_table(TRUNKS)?;
1055 table.insert(key, value)?;
1056 Ok(())
1057 }
1058
1059 fn put_crdt_inode_trunk(&mut self, inode: u64, trunk_key: &[u8; 12]) -> PristineResult<()> {
1060 let mut table = self.txn.open_table(INODE_TRUNK)?;

Callers 3

put_trunkFunction · 0.80
update_trunk_stateFunction · 0.80
update_trunk_pathFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected