GitHub

LegacyStore

API reference for LegacyStore.

A pair whose legacy name (legacy_name, which other pairs share) names 0.6.5 tables holding batches.

state, while no pair has the tables:

  • "pending": its key alone, among the name's pairs, had a session auth binding before the upgrade. It waits for migrate_legacy_store, unless the server's layer_storage has migrate_legacy_stores="when_server_written": then the server gives it the tables on this pair's own next request.
  • "unconfirmed": likewise, but pyfect 0.6.6 or 0.6.7 opened the database before this version, so the binding may be newer than the upgrade; the store waits for migrate_legacy_store.
  • "ambiguous": other_keys had bindings before the upgrade too; the store waits for the operator to decide.
  • "unbound": its key had no binding before the upgrade, so its pair wrote them only if it wrote straight through the storage.
  • "split": the store holds batches under its new tables too, and a 0.6.5 node wrote the old ones after the upgrade: its key alone had a binding, or no key of the name had one and the old tables stored a batch in or after the hour the new ones first did.

Once a pair has the tables: "migrated" (this pair) or "taken" (another pair of the name), and migrated_by says who gave them: the server, the operator, or 0.6.6 / 0.6.7, whose rules may have given them to a pair that did not write them.

other_keys are the name's other keys bound before the upgrade; binding is when this pair's key was bound. upgrade_recorded is false until a server of 0.6.8 or later first starts on the database: the bindings as they stand then count as before the upgrade, and any made before that start still will.

Attributes

AttributeTypeDescription
public_keystr
store_idstr
stateLegacyStoreState
other_keystuple[str, ...] = ()
bindingLegacyBinding = 'before_upgrade'
migrated_byLegacyMigratedBy | None = None
upgrade_recordedbool = True
legacy_namestr

Functions

__init__

__init__(public_key, store_id, state, other_keys=(), binding='before_upgrade', migrated_by=None, upgrade_recorded=True) -> None
ParameterTypeDescription
public_keystr
store_idstr
stateLegacyStoreState
other_keystuple[str, ...] = ()
bindingLegacyBinding = 'before_upgrade'
migrated_byLegacyMigratedBy | None = None
upgrade_recordedbool = True