]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: check if osd exists such that pg_layout=linear behaves
authorSage Weil <sage@newdream.net>
Mon, 30 Jun 2008 15:39:35 +0000 (08:39 -0700)
committerSage Weil <sage@newdream.net>
Mon, 30 Jun 2008 15:39:35 +0000 (08:39 -0700)
src/osd/OSDMap.h

index 71a6b1e45976f3df46c4c9cf754e6ce60170f03c..da72a67ad99c24c056de5a25f766cbf4fc0f2596 100644 (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();