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,
)
| 2071 | /// The mapping refresh under an explicit effect budget: the metadata-only |
| 2072 | /// daemon defers instead of running recovery inside the writable open. |
| 2073 | fn refresh_import_mapping_budgeted( |
| 2074 | root: &Path, |
| 2075 | snapshot: &ShimSnapshot, |
| 2076 | budget: ReconcileEffectBudget, |
| 2077 | ) -> CliResult<()> { |
| 2078 | let repo = Repository::open_with_budget(root, budget).map_err(CliError::from)?; |
| 2079 | let working_copy = repo.require_working_copy_id().map_err(CliError::from)?; |
| 2080 | let git = open_git(root)?; |
| 2081 | super::ref_mapping::refresh_mapping_observation( |
| 2082 | &repo, |
| 2083 | working_copy, |
| 2084 | &git, |
| 2085 | &snapshot.view, |
| 2086 | None, |
| 2087 | None, |
| 2088 | ) |
| 2089 | } |
| 2090 | |
| 2091 | #[derive(Clone, Copy, Debug, Eq, PartialEq)] |
| 2092 | pub(crate) enum CheckpointRefresh { |
no test coverage detected