The mapping refresh under an explicit effect budget: the metadata-only daemon defers instead of running recovery inside the writable open.
(
root: &Path,
snapshot: &ShimSnapshot,
budget: ReconcileEffectBudget,
)
| 2115 | /// The mapping refresh under an explicit effect budget: the metadata-only |
| 2116 | /// daemon defers instead of running recovery inside the writable open. |
| 2117 | fn refresh_import_mapping_budgeted( |
| 2118 | root: &Path, |
| 2119 | snapshot: &ShimSnapshot, |
| 2120 | budget: ReconcileEffectBudget, |
| 2121 | ) -> CliResult<()> { |
| 2122 | let repo = Repository::open_with_budget(root, budget).map_err(CliError::from)?; |
| 2123 | let working_copy = repo.require_working_copy_id().map_err(CliError::from)?; |
| 2124 | let git = open_git(root)?; |
| 2125 | super::ref_mapping::refresh_mapping_observation( |
| 2126 | &repo, |
| 2127 | working_copy, |
| 2128 | &git, |
| 2129 | &snapshot.view, |
| 2130 | None, |
| 2131 | None, |
| 2132 | ) |
| 2133 | } |
| 2134 | |
| 2135 | #[derive(Clone, Copy, Debug, Eq, PartialEq)] |
| 2136 | pub(crate) enum CheckpointRefresh { |
no test coverage detected