]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: MOSDPGNotify: print prettier
authorSage Weil <sage@newdream.net>
Sun, 23 Oct 2011 05:43:33 +0000 (22:43 -0700)
committerSage Weil <sage@newdream.net>
Tue, 25 Oct 2011 05:50:43 +0000 (22:50 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/messages/MOSDPGNotify.h

index 903a88a6e66524062bba96fa02ab85935a8ea1bc..adcb050e6a561e56350a44c3632572d865777ef1 100644 (file)
@@ -64,14 +64,17 @@ public:
     }
   }
   void print(ostream& out) {
-    out << "osd pg notify(" << "epoch " << epoch
-       << "query_epoch " << query_epoch << "; ";
+    out << "pg_notify(";
     for (vector<PG::Info>::iterator i = pg_list.begin();
          i != pg_list.end();
          ++i) {
-      out << "pg" << i->pgid << "; ";
+      if (i != pg_list.begin())
+       out << ",";
+      out << i->pgid;
     }
-    out << ")";
+    out << " epoch " << epoch
+       << " query_epoch " << query_epoch
+       << ")";
   }
 };