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

Method sandbox_slice_inodes

atomic-repository/src/repository/remote_cache.rs:1185–1194  ·  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

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

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