]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/pg: publish stats to osd if pg is currently marked as down 8291/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 25 Mar 2016 03:25:53 +0000 (11:25 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 25 Mar 2016 14:14:24 +0000 (22:14 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/PG.cc

index 14ac7b48234c846fc9f02693e57bb8899939d885..13bb8d097118f13c28a3616d8b71b063d4a5a0b2 100644 (file)
@@ -7225,6 +7225,7 @@ boost::statechart::result PG::RecoveryState::GetInfo::react(const MNotifyRec& in
          if (!any_up_complete_now && any_down_now) {
            dout(10) << " no osds up+complete from interval " << interval << dendl;
            pg->state_set(PG_STATE_DOWN);
+            pg->publish_stats_to_osd();
            return discard_event();
          }
          break;