Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd/PG: force rebuild of missing set on jewel upgrade
Previously we were detecting the need to rebuild missing based on whether the "divergent_priors" omap key was present. Unfortunately, jewel does not always set this, so it is not a reliable indicator. (It only gets set if you actually have a divergent prior at some point in the PG's life time on that OSD.) Fix by using the info_struct_v on the PG to detect whether we need to do the conversion. We didn't bump the value when we adding the missing persistence, but the fastinfo was also added during the same period between jewel and kraken, so it will work just as well. Fixes: http://tracker.ceph.com/issues/20958 Signed-off-by: Sage Weil <sage@redhat.com>
- Loading branch information
Showing
3 changed files
with
28 additions
and
7 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
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