Enter an explicit working-copy boundary inside the blocking request. The caller retains the returned transaction for the whole operation; its ordered graph/workspace locks must not be dropped after reading ID.
(
&self,
mode: atomic_repository::WorkspaceTxnMode,
)
| 113 | /// The caller retains the returned transaction for the whole operation; |
| 114 | /// its ordered graph/workspace locks must not be dropped after reading ID. |
| 115 | pub fn workspace_repository( |
| 116 | &self, |
| 117 | mode: atomic_repository::WorkspaceTxnMode, |
| 118 | ) -> Result<(Repository, atomic_repository::WorkspaceTxn), Status> { |
| 119 | self.workspace_repository_for_switch(mode, None) |
| 120 | } |
| 121 | |
| 122 | /// The only force recovery allowed here is retrying the exact view whose |
| 123 | /// native switch completed before its separate Git projection failed. |
no test coverage detected