Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More efficient log rotation checking
Merely checking need for log rotation shows up on the radar when profiling, especially if there are many concurrent committers. When appending there's a natural selection of one out of all that gets to force the log. This commit piggy-backs on that decision and lets that thread, and only that one out of all concurrent committers, to check log rotation. Also introduced double checked locking for checking need for log rotation due to a lot of unnecessary hogging of that monitor in most calls, since log rotation isn't needed very often These two minor changes improves transaction commit concurrency
- Loading branch information
Showing
2 changed files
with
19 additions
and
13 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