Skip to content
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

AccountsDb: make write_accounts_to_cache() never block sending to the bg hasher #3814

Merged
merged 1 commit into from
Dec 2, 2024

Commits on Nov 27, 2024

  1. AccountsDb: make write_accounts_to_cache() never block sending to the…

    … bg hasher
    
    Avoid commit_transactions() => store() => store_accounts_to() callers
    having to notify the bg hasher thread by doing an explicit sleep instead
    of sleeping on channel.recv() when the channel is empty. This avoids the
    case in which multiple replay/banking threads call commit_transactions()
    at the same time and end up... sleeping themselves acquiring the mutex
    to wake up the bg hasher.
    alessandrod committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    9c85c4b View commit details
    Browse the repository at this point in the history