Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPROVED] Reduce use of locking in raftlog.go
raftLog is a wrapper to bolt's DB database. I think that we can remove some of the raftLog's locking since bolt's DB itself will ensure locking. I am not expecting much of a performance boost with this PR, but it has been observed contention between GetLog and StoreLogs in some cases, so that may help. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
- Loading branch information
Showing
2 changed files
with
21 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters