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 formigrate_legacy_store, unless the server'slayer_storagehasmigrate_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 formigrate_legacy_store."ambiguous":other_keyshad 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#
| Attribute | Type | Description |
|---|---|---|
public_key | str | |
store_id | str | |
state | LegacyStoreState | |
other_keys | tuple[str, ...] = () | |
binding | LegacyBinding = 'before_upgrade' | |
migrated_by | LegacyMigratedBy | None = None | |
upgrade_recorded | bool = True | |
legacy_name | str |
Functions#
__init__#
__init__(public_key, store_id, state, other_keys=(), binding='before_upgrade', migrated_by=None, upgrade_recorded=True) -> None| Parameter | Type | Description |
|---|---|---|
public_key | str | |
store_id | str | |
state | LegacyStoreState | |
other_keys | tuple[str, ...] = () | |
binding | LegacyBinding = 'before_upgrade' | |
migrated_by | LegacyMigratedBy | None = None | |
upgrade_recorded | bool = True |