You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(txn): scope spill keys to the open handle and reclaim orphaned scratch
The transaction sequence restarts at 1 on every open and doubles as the
spill nonce, so a spill key derived only from the durable file id and
that sequence would repeat across two opens of one store at the same
sequence, and the nonce built from it would repeat with it. Mix a
random per-open epoch into the derivation so the key is distinct per
open, leaving the sequence free to serve as the nonce.
Pair this with reclaiming the scratch such keys ever protected: a
transaction dropped without commit or abort cannot await the removal,
so it now hands its exact path to the next begin_write, and whatever
still survives at the next open is swept outright, since a spill file
is never read back across handles.
0 commit comments