mirror of
https://github.com/ceph/ceph
synced 2025-03-22 10:17:23 +00:00
osd: check if osd exists such that pg_layout=linear behaves
This commit is contained in:
parent
f2a8d1049f
commit
f8801b627d
@ -640,7 +640,7 @@ private:
|
|||||||
|
|
||||||
osds.clear();
|
osds.clear();
|
||||||
for (unsigned i=0; i<raw.size(); i++) {
|
for (unsigned i=0; i<raw.size(); i++) {
|
||||||
if (is_down(raw[i])) continue;
|
if (!exists(raw[i]) || is_down(raw[i])) continue;
|
||||||
osds.push_back( raw[i] );
|
osds.push_back( raw[i] );
|
||||||
}
|
}
|
||||||
return osds.size();
|
return osds.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user