Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd/OSDMap: cache get_up_osd_features
This method is O(n) and called from in a few places for each IO operation. Cache the value since it does not change over the lifetime of a single epoch. Invalidate on apply_incremental() and decode. Signed-off-by: Sage Weil <sage@redhat.com>
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 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