Expand description
Namespace / collection reset (spec §3.7, gonzalo#203).
Reset tombstones every live record under a prefix by issuing ordinary
OCC-guarded delete calls, so it replicates like any other delete and
needs only write on the namespace. It is not atomic: no substrate
offers multi-key transactions. It is idempotent instead. A second run
tombstones whatever the first run missed (a key that lost a race) and
skips everything already gone.
Structs§
- Reset
Report - What a reset run did.
Functions§
- reset
- Tombstone every live record under
prefix.prefix.namespaceis required. Resetting every namespace in a store is not a reset, so a caller who wants that must loop over namespaces explicitly. - reset_
as - As
reset, stampingauthoras each tombstone’s deleter (Store::delete_as).Nonekeeps each record’s own author, exactly asresetdoes. Over a daemon the deleter follows spec §3.6: a non-admin token is stamped as itself.