MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / open_for_native_repair

Method open_for_native_repair

atomic-repository/src/repository/mod.rs:932–934  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected