]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: note must_scrub* flags in PG operator<<
authorSage Weil <sage@inktank.com>
Tue, 15 Jan 2013 02:22:02 +0000 (18:22 -0800)
committerSage Weil <sage@inktank.com>
Wed, 23 Jan 2013 14:21:20 +0000 (06:21 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit d56af797f996ac92bf4e0886d416fd358a2aa08e)

src/osd/PG.cc

index d120a380110acfe5f81e38bda768ca18efc6cbe6..ff0fa2014ca695fe9ebd64659c468b93a51d85c2 100644 (file)
@@ -4820,6 +4820,13 @@ ostream& operator<<(ostream& out, const PG& pg)
   if (pg.should_send_notify())
     out << " NOTIFY";
 
+  if (pg.scrubber.must_repair)
+    out << " MUST_REPAIR";
+  if (pg.scrubber.must_deep_scrub)
+    out << " MUST_DEEP_SCRUB";
+  if (pg.scrubber.must_scrub)
+    out << " MUST_SCRUB";
+
   //out << " (" << pg.log.tail << "," << pg.log.head << "]";
   if (pg.missing.num_missing()) {
     out << " m=" << pg.missing.num_missing();