From: David Zafman Date: Wed, 15 Apr 2015 22:40:41 +0000 (-0700) Subject: ceph-objectstore-tool: Create section around log/missing/divergent_priors of --op log X-Git-Tag: v9.0.2~168^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=548147b412eebe57861768e5fd66360c2582d2c6;p=ceph.git ceph-objectstore-tool: Create section around log/missing/divergent_priors of --op log Remove extra new lines in the output Signed-off-by: David Zafman --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 1f3bc34e258e..8bac5a75324d 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -3255,16 +3255,15 @@ int main(int argc, char **argv) if (ret > 0) goto out; + formatter->open_object_section("op_log"); formatter->open_object_section("pg_log_t"); log.dump(formatter); formatter->close_section(); formatter->flush(cout); - cout << std::endl; formatter->open_object_section("pg_missing_t"); missing.dump(formatter); formatter->close_section(); formatter->flush(cout); - cout << std::endl; formatter->open_object_section("map"); formatter->open_array_section("divergent_priors"); for (map::iterator it = divergent_priors.begin(); @@ -3276,8 +3275,8 @@ int main(int argc, char **argv) } formatter->close_section(); formatter->close_section(); + formatter->close_section(); formatter->flush(cout); - cout << std::endl; } else if (op == "rm-past-intervals") { ObjectStore::Transaction tran; ObjectStore::Transaction *t = &tran;