Skip to content

feat(metadb): add transactional blob ref tracking and expiry reaper#13

Merged
wolfeidau merged 1 commit into
mainfrom
chore_metadb_migration
Feb 1, 2026
Merged

feat(metadb): add transactional blob ref tracking and expiry reaper#13
wolfeidau merged 1 commit into
mainfrom
chore_metadb_migration

Conversation

@wolfeidau
Copy link
Copy Markdown
Member

  • Add PutMetaWithRefs/DeleteMetaWithRefs for atomic ref counting
  • Add UpdateJSON for atomic read-modify-write operations
  • Add ExpiryReaper for background cleanup of expired metadata
  • Migrate npm protocol to use metadb instead of filesystem backend

Blob refs are now tracked per meta-key with diff computation on overwrites,
preventing ref drift and enabling safe TTL-based expiration with automatic
ref decrement.

- Add PutMetaWithRefs/DeleteMetaWithRefs for atomic ref counting
- Add UpdateJSON for atomic read-modify-write operations
- Add ExpiryReaper for background cleanup of expired metadata
- Migrate npm protocol to use metadb instead of filesystem backend

Blob refs are now tracked per meta-key with diff computation on overwrites,
preventing ref drift and enabling safe TTL-based expiration with automatic
ref decrement.
@wolfeidau wolfeidau merged commit 10125d0 into main Feb 1, 2026
1 check passed
@wolfeidau wolfeidau deleted the chore_metadb_migration branch February 1, 2026 07:13
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.

1 participant