mirror of
https://github.com/ceph/ceph
synced 2025-02-21 09:57:26 +00:00
osdmap: kill unused/useless get_num_osds()
This commit is contained in:
parent
2a1f32944c
commit
6b4d8f9fbe
@ -69,7 +69,7 @@ void OSDMap::print(ostream& out)
|
||||
void OSDMap::print_summary(ostream& out)
|
||||
{
|
||||
out << "e" << get_epoch() << ": "
|
||||
<< get_num_osds() << " osds: "
|
||||
<< get_max_osd() << " osds: "
|
||||
<< get_num_up_osds() << " up, "
|
||||
<< get_num_in_osds() << " in";
|
||||
if (blacklist.size())
|
||||
|
@ -304,13 +304,6 @@ private:
|
||||
if (exists(i))
|
||||
ls.insert(i);
|
||||
}
|
||||
int get_num_osds() {
|
||||
int n = 0;
|
||||
for (int i=0; i<max_osd; i++)
|
||||
//if (osd_state[i] & CEPH_OSD_EXISTS)
|
||||
n++;
|
||||
return n;
|
||||
}
|
||||
int get_num_up_osds() {
|
||||
int n = 0;
|
||||
for (int i=0; i<max_osd; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user