]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/ClusterState: record osd_stat for out osds too
authorSage Weil <sage@redhat.com>
Thu, 10 Aug 2017 19:00:46 +0000 (15:00 -0400)
committerSage Weil <sage@redhat.com>
Sat, 12 Aug 2017 02:47:50 +0000 (22:47 -0400)
I'm not quite sure why we were doing this. :/

Signed-off-by: Sage Weil <sage@redhat.com>
src/mgr/ClusterState.cc

index 7e01a811ef158b67da452faad8f8e3ed55c6c5a3..b727ac1867e96ebd1279eadc66900b3652e2a623 100644 (file)
@@ -70,16 +70,8 @@ void ClusterState::ingest_pgstats(MPGStats *stats)
   Mutex::Locker l(lock);
 
   const int from = stats->get_orig_source().num();
-  bool is_in = false;
-  objecter->with_osdmap([&is_in, from](const OSDMap &osd_map){
-      is_in = osd_map.is_in(from);
-  });
-
-  if (is_in) {
-    pending_inc.update_stat(from, stats->epoch, std::move(stats->osd_stat));
-  } else {
-    pending_inc.update_stat(from, stats->epoch, osd_stat_t());
-  }
+
+  pending_inc.update_stat(from, stats->epoch, std::move(stats->osd_stat));
 
   for (auto p : stats->pg_stat) {
     pg_t pgid = p.first;