From a7612d33d1e4184af7faa6712fc50d6487a09c40 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 10 Aug 2017 15:00:46 -0400 Subject: [PATCH] mgr/ClusterState: record osd_stat for out osds too I'm not quite sure why we were doing this. :/ Signed-off-by: Sage Weil --- src/mgr/ClusterState.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/mgr/ClusterState.cc b/src/mgr/ClusterState.cc index 7e01a811ef15..b727ac1867e9 100644 --- a/src/mgr/ClusterState.cc +++ b/src/mgr/ClusterState.cc @@ -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; -- 2.47.3