Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AccountsDb: make write_accounts_to_cache() never block sending to the…
… bg hasher (#3814) 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.
- Loading branch information