-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pool: sort flush queue only if we going to use the result
Motivation: Even if flush number of active flushes is configured to be zero, the StorageClassInfo#internalFlush will sort the requests, but discard the result. Modification: Update StorageClassInfo#internalFlush to sort the flush queue right before the sorted result is needed. Use Java8 stream to build the sorted sublist. Result: Reduce the number of useless CPU intensive operations and lock starvation. Target: master, 7.0, 6.2 Acked-by: Lea Morschel Acked-by: Paul Millar
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 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