From: xie xingguo Date: Fri, 25 Mar 2016 03:04:42 +0000 (+0800) Subject: osd/pg: publish stats to osd if we recovered from degraded X-Git-Tag: v10.1.1~98^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c0ceb8b7a69474797920799f6ec632e7923ab486;p=ceph.git osd/pg: publish stats to osd if we recovered from degraded Signed-off-by: xie xingguo --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index b3d126e7b41..14ac7b48234 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -6493,8 +6493,10 @@ PG::RecoveryState::Recovered::Recovered(my_context ctx) // DEGRADED | UNDERSIZED is appropriate. assert(!pg->actingbackfill.empty()); if (pg->get_osdmap()->get_pg_size(pg->info.pgid.pgid) <= - pg->actingbackfill.size()) + pg->actingbackfill.size()) { pg->state_clear(PG_STATE_DEGRADED); + pg->publish_stats_to_osd(); + } // adjust acting set? (e.g. because backfill completed...) if (pg->acting != pg->up && !pg->choose_acting(auth_log_shard))