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

Function semantic_rows

atomic-repository/tests/span_storage_guard.rs:39–56  ·  view source on GitHub ↗
(repo: &Repository)

Source from the content-addressed store, hash-verified

37}
38
39fn semantic_rows(repo: &Repository) -> (u64, u64, u64) {
40 let db = repo.pristine().shared_database().unwrap();
41 let txn = db.begin_read().unwrap();
42 (
43 txn.open_table(atomic_core::crdt::tables::TRUNKS)
44 .unwrap()
45 .len()
46 .unwrap(),
47 txn.open_table(atomic_core::crdt::tables::BRANCHES)
48 .unwrap()
49 .len()
50 .unwrap(),
51 txn.open_table(atomic_core::crdt::tables::LEAVES)
52 .unwrap()
53 .len()
54 .unwrap(),
55 )
56}
57
58// Raw compaction is confined to this disposable fixture, after the supported
59// repository handle and all transactions have closed. Never a live migration.

Callers 1

storage_guardFunction · 0.85

Calls 5

shared_databaseMethod · 0.80
pristineMethod · 0.80
begin_readMethod · 0.80
unwrapMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected