]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PeeringState: use pg_vector_string for operator<<
authorSage Weil <sage@redhat.com>
Mon, 9 Dec 2019 15:44:39 +0000 (09:44 -0600)
committerSage Weil <sage@redhat.com>
Mon, 9 Dec 2019 15:50:12 +0000 (09:50 -0600)
This shows NONE instead of a numeric CRUSH_ITEM_NONE.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PeeringState.cc

index ba3e33fb3bb583417e1e6529508d60f0a268bbc9..3528497fa7af15aceaa34042814f6164095af157 100644 (file)
@@ -6950,9 +6950,9 @@ void PeeringState::PeeringMachine::log_exit(const char *state_name, utime_t ente
 
 ostream &operator<<(ostream &out, const PeeringState &ps) {
   out << "pg[" << ps.info
-      << " " << ps.up;
+      << " " << pg_vector_string(ps.up);
   if (ps.acting != ps.up)
-    out << "/" << ps.acting;
+    out << "/" << pg_vector_string(ps.acting);
   if (ps.is_ec_pg())
     out << "p" << ps.get_primary();
   if (!ps.async_recovery_targets.empty())