]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: print last_update_applied if != last_update 3276/head
authorSage Weil <sage@redhat.com>
Tue, 30 Dec 2014 17:29:16 +0000 (09:29 -0800)
committerSage Weil <sage@redhat.com>
Mon, 5 Jan 2015 20:53:58 +0000 (12:53 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc

index e8bbc969e339d0a3fbfdca86130a0ae725648d73..9fb255f2468a91294956f7855c20317d4f9e4910 100644 (file)
@@ -4827,9 +4827,12 @@ ostream& operator<<(ostream& out, const PG& pg)
        << "/" << pg.past_intervals.size();
   }
 
-  if (pg.is_active() &&
-      pg.last_update_ondisk != pg.info.last_update)
-    out << " luod=" << pg.last_update_ondisk;
+  if (pg.is_active()) {
+    if (pg.last_update_ondisk != pg.info.last_update)
+      out << " luod=" << pg.last_update_ondisk;
+    if (pg.last_update_applied != pg.info.last_update)
+      out << " lua=" << pg.last_update_applied;
+  }
 
   if (pg.recovery_ops_active)
     out << " rops=" << pg.recovery_ops_active;