pub enum WalDelta {
CreateInode {
delta_index: u32,
inode_id: InodeId,
inode_kind: InodeKind,
},
BindDirentry {
delta_index: u32,
parent_inode_id: InodeId,
name_key: NameKey,
display_name: DisplayName,
child_inode_id: InodeId,
},
UnbindDirentry {
delta_index: u32,
parent_inode_id: InodeId,
name_key: NameKey,
display_name: DisplayName,
child_inode_id: InodeId,
bind_seq: ChangeSeq,
bind_delta_index: u32,
},
AppendFileRevision {
delta_index: u32,
inode_id: InodeId,
revision_no: RevisionNo,
content_ref: ContentRef,
},
TombstoneSubtree {
delta_index: u32,
root_inode_id: InodeId,
parent_inode_id: Option<InodeId>,
name_key: Option<NameKey>,
display_name: Option<DisplayName>,
},
RevokeSubtreeTombstone {
delta_index: u32,
root_inode_id: InodeId,
target_seq: ChangeSeq,
target_delta_index: u32,
},
}Expand description
Records one replayable metadata mutation materialized from a semantic commit operation.
Variants§
CreateInode
Introduces an inode whose identity and kind remain fixed for its lifetime.
Fields
BindDirentry
Makes a child reachable under one canonical name in a directory.
Fields
display_name: DisplayNameUser-facing spelling preserved independently of name_key.
UnbindDirentry
Removes one exact historical directory binding without affecting a later rebind.
Fields
display_name: DisplayNameUser-facing spelling the removed binding carried, so feed consumers see the name a person typed without a second lookup.
AppendFileRevision
Publishes the next immutable content revision of a file inode.
Fields
revision_no: RevisionNoMonotonic per-file revision number validated against visible history.
content_ref: ContentRefImmutable content that must already be durable before publication.
TombstoneSubtree
Hides a rooted subtree from snapshots at this delta’s sequence or later.
Fields
parent_inode_id: Option<InodeId>Directory that held the deleted binding, when the tombstone came from a path delete. Carried so the deleted name survives on the immortal tombstone row after unbind rows age out.
display_name: Option<DisplayName>User-facing spelling of the deleted binding, when known.
RevokeSubtreeTombstone
Revokes exactly one subtree tombstone — the one recorded at
(target_seq, target_delta_index) — making the subtree eligible for
visibility again once re-bound. An immutable compensating event, not
an in-place row deletion: a later TombstoneSubtree for the same
root supersedes the revoke.