(table: &Table)
| 149 | } |
| 150 | |
| 151 | pub 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 | |
| 163 | pub async fn prune_table_versions( |
| 164 | table: &Table, |
no test coverage detected