summaryrefslogtreecommitdiff
path: root/src/vector/shaders
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-16 23:49:21 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit3cf0b76e12f06a68cc0d84b2877f7f0261fe8d19 (patch)
treec0e5685890395e3108d2fd761975f73d018fb43d /src/vector/shaders
parent5dc2c61f1df30d2dd84fbba6d0e8895a62c3b2b5 (diff)
downloadsketchbook-3cf0b76e12f06a68cc0d84b2877f7f0261fe8d19.tar.gz
sketchbook-3cf0b76e12f06a68cc0d84b2877f7f0261fe8d19.zip
Mend a sessions database a crash tore, compact one at exit
A database whose last commit a power loss tore (its root header written, its bytes not all) was refused and renamed aside, a new one begun. Now it is opened at the last commit before the tear whose trailer verifies and whose sessions read whole, scanned back from the end, as pardes's state file is; renaming it to <path>.broken.<seconds> stays the last resort, when no commit is whole, and nothing is deleted. Every commit leaves the nodes it copied behind, about a kilobyte a second of play: a clean exit compacts the file (into <path>.new, synced, renamed over it) once it is 64 MiB and past twice what its batches and keyframes hold plus 64 MiB. Tests: a database of two sessions, cut at six places inside its last commit, opens at the commit before with every frame of both; one with no whole commit is kept aside byte for byte; a compacted one is smaller and holds every frame and keyframe. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/vector/shaders')
0 files changed, 0 insertions, 0 deletions