MCPcopy Create free account
hub / github.com/acking-you/static_flow / compact_table_with_fallback

Function compact_table_with_fallback

crates/store/src/optimize.rs:151–161  ·  view source on GitHub ↗
(table: &Table)

Source from the content-addressed store, hash-verified

149}
150
151pub async fn compact_table_with_fallback(table: &Table) -> Result<CompactAction, String> {
152 table
153 .repair_missing_frag_reuse_index()
154 .await
155 .map_err(|err| format!("failed to repair stale frag_reuse metadata: {err:#}"))?;
156 let optimize_path = optimize_compaction_with_fallback(table).await?;
157 Ok(match optimize_path {
158 OptimizePath::Maintenance => CompactAction::CompactedMaintenance,
159 OptimizePath::SafeFallback => CompactAction::CompactedSafeFallback,
160 })
161}
162
163pub async fn prune_table_versions(
164 table: &Table,

Calls 1

Tested by

no test coverage detected