mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
mds: account for 'damaged' in MDSMap::is_degraded
Fixes: #11218 Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
parent
aae265bfe1
commit
7eccf920ba
@ -520,7 +520,7 @@ public:
|
||||
return mds_rank_t(in.size()) >= max_mds;
|
||||
}
|
||||
bool is_degraded() const { // degraded = some recovery in process. fixes active membership and recovery_set.
|
||||
if (!failed.empty())
|
||||
if (!failed.empty() || !damaged.empty())
|
||||
return true;
|
||||
for (std::map<mds_gid_t,mds_info_t>::const_iterator p = mds_info.begin();
|
||||
p != mds_info.end();
|
||||
|
Loading…
Reference in New Issue
Block a user