Open an existing repository for one explicit native-index repair. This bypasses automatic migration and deferred alignment so every write remains inside the repair transaction itself.
(path: P)
| 930 | /// This bypasses automatic migration and deferred alignment so every write |
| 931 | /// remains inside the repair transaction itself. |
| 932 | pub fn open_for_native_repair<P: AsRef<Path>>(path: P) -> Result<Self, RepositoryError> { |
| 933 | Self::open_for_native_repair_mode(path.as_ref(), false) |
| 934 | } |
| 935 | |
| 936 | fn open_for_native_repair_mode(path: &Path, readonly: bool) -> Result<Self, RepositoryError> { |
| 937 | if sandbox::detect_sandbox(path).is_some() { |