mirror of
https://github.com/ceph/ceph
synced 2025-03-20 01:07:42 +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();
|
||||
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] );
|
||||
}
|
||||
return osds.size();
|
||||
|
Loading…
Reference in New Issue
Block a user