Skip to content

fix: serialize disk cache writes with stable lock - #16

Merged
suchapalaver merged 1 commit into
mainfrom
fix-13-disk-cache-lock
Jul 5, 2026
Merged

suchapalaver merged 1 commit into
mainfrom
fix-13-disk-cache-lock

Conversation

@suchapalaver

Copy link
Copy Markdown
Owner

Summary:

  • protect DiskCache load/mutate/save with a stable companion lock file
  • keep atomic write/rename and add a concurrent two-instance insert regression test
  • replace stringly-typed blocking operation labels with typed enums

Verification:

  • cargo fmt
  • git diff --check
  • nix shell nixpkgs#stdenv.cc -c cargo clippy --all-targets --all-features -- -D warnings
  • nix shell nixpkgs#stdenv.cc -c cargo test blocks::cache::disk::tests --all-features

Closes #13

@suchapalaver
suchapalaver merged commit 885ffaf into main Jul 5, 2026
11 checks passed
@suchapalaver
suchapalaver deleted the fix-13-disk-cache-lock branch July 5, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DiskCache needs a stable lock for cross-instance read-modify-write

1 participant