Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use delete_range instead of clear() to avoid race condition (#12855)
because clear() drops and re-creates the table without holding a lock, it can cause crashes if other threads happen to try to write to or read from the table being cleared. I don't think it makes sense to add locking to every DBMap access just to fix this case, so I'm just going to avoid calling clear().
- Loading branch information
199e0b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4 Validators 500/s Owned Transactions Benchmark Results
4 Validators 500/s Shared Transactions Benchmark Results
20 Validators 50/s Owned Transactions Benchmark Results
20 Validators 50/s Shared Transactions Benchmark Results
Narwhal Benchmark Results