Skip to content

change synchronisation in hashdb commit to allow concurrent reads #465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

magicxyyz
Copy link
Contributor

@magicxyyz magicxyyz commented May 30, 2025

This PR modifies hashdb.commit operation:

  • nodes removal from dirties is delayed until all writes to disk are performed
  • read lock is used for the fist part of commit operation
  • hashdb write lock is acquired only when removing nodes from dirties

part of NIT-3414

@cla-bot cla-bot bot added the s CLA signed label May 30, 2025
* delay nodes removal from dirties until all writes are performed
* use read lock for the fist part of commit operation and acquire hashdb write lock only when removing nodes from dirties
@magicxyyz magicxyyz force-pushed the hashdb-commit-lock branch from c6e5e89 to 029ff16 Compare May 30, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s CLA signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant