From 83de86e4e9dedc05fd65201715dadbd46074b7e0 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Wed, 15 Apr 2015 15:40:41 -0700 Subject: [PATCH] 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 (cherry picked from commit 548147b412eebe57861768e5fd66360c2582d2c6) --- src/tools/ceph_objectstore_tool.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index ffe6a82f130ec..c8df7ac0ed7bb 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -3258,16 +3258,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(); @@ -3279,8 +3278,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; -- 2.39.5