]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedPG: warn if invalid stats prevent us from activating agent 1611/head
authorSage Weil <sage@inktank.com>
Mon, 7 Apr 2014 22:39:59 +0000 (15:39 -0700)
committerSage Weil <sage@inktank.com>
Mon, 7 Apr 2014 22:40:47 +0000 (15:40 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index e5f836282df50a0af1db28ef66a4f16658ec2431..bea23efa7a4e9fa2ecbd8206021460e2c0f7f501 100644 (file)
@@ -10579,6 +10579,10 @@ void ReplicatedPG::agent_setup()
     dout(10) << __func__ << " keeping existing state" << dendl;
   }
 
+  if (info.stats.stats_invalid) {
+    osd->clog.warn() << "pg " << info.pgid << " has invalid (post-split) stats; must scrub before tier agent can activate";
+  }
+
   agent_choose_mode();
 }