osd: check if osd exists such that pg_layout=linear behaves

This commit is contained in:
Sage Weil 2008-06-30 08:39:35 -07:00
parent f2a8d1049f
commit f8801b627d

View File

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