Skip to content

Commit

Permalink
osd, doc: make OSDMap::pending_require_osd_release() aware about squid
Browse files Browse the repository at this point in the history
Signed-off-by: Radosław Zarzyński <[email protected]>
  • Loading branch information
rzarzynski authored and Laura Flores committed Dec 21, 2023
1 parent 196abf5 commit e0f3960
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/dev/release-checklists.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Mon
OSDMap
------

- [ ] src/osd/OSDMap.cc add release name mapping for `SERVER_X` in `pending_require_osd_release()`
- [x] src/osd/OSDMap.cc add release name mapping for `SERVER_X` in `pending_require_osd_release()`

Code cleanup
------------
Expand Down
4 changes: 4 additions & 0 deletions src/osd/OSDMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7410,6 +7410,10 @@ unsigned OSDMap::get_device_class_flags(int id) const

std::optional<std::string> OSDMap::pending_require_osd_release() const
{
if (HAVE_FEATURE(get_up_osd_features(), SERVER_SQUID) &&
require_osd_release < ceph_release_t::squid) {
return "squid";
}
if (HAVE_FEATURE(get_up_osd_features(), SERVER_REEF) &&
require_osd_release < ceph_release_t::reef) {
return "reef";
Expand Down

0 comments on commit e0f3960

Please sign in to comment.