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

Method path_claim_migration_required

atomic-core/src/pristine/txn/pristine.rs:676–684  ·  view source on GitHub ↗

Whether repository-level path-claim backfill is still required.

(&self)

Source from the content-addressed store, hash-verified

674
675 /// Whether repository-level path-claim backfill is still required.
676 pub fn path_claim_migration_required(&self) -> PristineResult<bool> {
677 match self.path_claim_schema_version()? {
678 Some(PATH_CLAIM_SCHEMA_VERSION) => Ok(false),
679 Some(version) if version > PATH_CLAIM_SCHEMA_VERSION => {
680 Err(path_claim_schema_error(Some(version)))
681 }
682 _ => Ok(true),
683 }
684 }
685
686 /// The writable redb handle, for stores that keep their tables in the same
687 /// repository database. `None` for a read-only pristine.

Callers 1

view_listFunction · 0.45

Calls 2

path_claim_schema_errorFunction · 0.85

Tested by

no test coverage detected