mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
mon/PGMap: make plurals be more compatible with existing codes
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
parent
ea723fbb88
commit
8dc7b5dfe6
@ -3109,11 +3109,12 @@ void PGMap::get_health_checks(
|
||||
for (auto& p : warn_osd_by_max) {
|
||||
ostringstream ss;
|
||||
if (p.second.size() > 1) {
|
||||
ss << "osds " << p.second;
|
||||
ss << "osds " << p.second
|
||||
<< " have blocked requests > " << p.first << " sec";
|
||||
} else {
|
||||
ss << "osd." << *p.second.begin();
|
||||
ss << "osd." << *p.second.begin()
|
||||
<< " has blocked requests > " << p.first << " sec";
|
||||
}
|
||||
ss << " have blocked requests > " << p.first << " sec";
|
||||
d.detail.push_back(ss.str());
|
||||
if (--left == 0) {
|
||||
break;
|
||||
@ -3130,11 +3131,12 @@ void PGMap::get_health_checks(
|
||||
for (auto& p : error_osd_by_max) {
|
||||
ostringstream ss;
|
||||
if (p.second.size() > 1) {
|
||||
ss << "osds " << p.second;
|
||||
ss << "osds " << p.second
|
||||
<< " have stuck requests > " << p.first << " sec";
|
||||
} else {
|
||||
ss << "osd." << *p.second.begin();
|
||||
ss << "osd." << *p.second.begin()
|
||||
<< " has stuck requests > " << p.first << " sec";
|
||||
}
|
||||
ss << " have stuck requests > " << p.first << " sec";
|
||||
d.detail.push_back(ss.str());
|
||||
if (--left == 0) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user