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

Method sandbox_slice_inodes

atomic-repository/src/repository/remote_cache.rs:1190–1199  ·  view source on GitHub ↗

All owner inodes needed to project the canonical closure. A thin slice cannot answer whole-tree path claims, deleted roots or attribute status. Use the existing FileStates protocol without changing its v1 encoding.

(&self)

Source from the content-addressed store, hash-verified

1188 /// cannot answer whole-tree path claims, deleted roots or attribute status.
1189 /// Use the existing FileStates protocol without changing its v1 encoding.
1190 pub fn sandbox_slice_inodes(&self) -> Result<Vec<u64>, RepositoryError> {
1191 use atomic_core::pristine::slice::LOCAL_INODE_FLOOR;
1192 let txn = self.pristine.read_txn().map_err(db)?;
1193 Ok(txn
1194 .snapshot_inodes()
1195 .map_err(db)?
1196 .into_iter()
1197 .filter_map(|(inode, _)| (inode.get() < LOCAL_INODE_FLOOR).then_some(inode.get()))
1198 .collect())
1199 }
1200
1201 /// Cache side: replace graph rows and reconstruct canonical derived indexes.
1202 ///

Callers 3

hydrate_cacheFunction · 0.80

Calls 5

read_txnMethod · 0.80
getMethod · 0.65
collectMethod · 0.45
into_iterMethod · 0.45
snapshot_inodesMethod · 0.45

Tested by 2

hydrate_cacheFunction · 0.64