Cannot assert when locks are held
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 732
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
We do not have functions which report whether read/claim/write locks are held in the cache. It would be useful to be able to do things like:
platform_assert(cache_write_lockheld(page));
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the cache's existing read, claim, and write lock handling and the surrounding assertion helpers. The issue's example, platform_assert(cache_write_lockheld(page)), shows the intended call shape; done means equivalent lock-held checks exist for all three lock types and are usable in assertions, with coverage added where the project tests cache behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100