mds: account for 'damaged' in MDSMap::is_degraded

Fixes: #11218
Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2015-03-26 12:51:30 +00:00
parent aae265bfe1
commit 7eccf920ba

View File

@ -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();