From 56f32be3d8c45a58db5eeec28016d44fba516408 Mon Sep 17 00:00:00 2001
From: Philipp Hufnagl
Date: Wed, 22 Nov 2023 12:31:41 +0100
Subject: [PATCH] osd: adding 'reef' to pending_require_osd_release
It appears adding 'reef' to pending_require_osd_release has been
forgotten. This PR adds it
Signed-off-by: Philipp Hufangl
(cherry picked from commit e443ef3562f9718b224acb550206497b5fdfe82e)
---
src/osd/OSDMap.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc
index 8f60b2f3c83cf..a1f22c591de56 100644
--- a/src/osd/OSDMap.cc
+++ b/src/osd/OSDMap.cc
@@ -7410,6 +7410,10 @@ unsigned OSDMap::get_device_class_flags(int id) const
std::optional OSDMap::pending_require_osd_release() const
{
+ if (HAVE_FEATURE(get_up_osd_features(), SERVER_REEF) &&
+ require_osd_release < ceph_release_t::reef) {
+ return "reef";
+ }
if (HAVE_FEATURE(get_up_osd_features(), SERVER_QUINCY) &&
require_osd_release < ceph_release_t::quincy) {
return "quincy";