]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common, osd: remove erroneous 'section' in dump functions 27804/head
authorGreg Farnum <gfarnum@redhat.com>
Fri, 26 Apr 2019 18:03:53 +0000 (11:03 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Fri, 26 Apr 2019 18:03:53 +0000 (11:03 -0700)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/include/utime.cc
src/include/uuid.cc
src/osd/osd_types.h

index 0afc1d585a127db00685af0fc0f5ba7d99ceea94..2252a1ca4fdece406301daeeba993740a810e08c 100644 (file)
 
 void utime_t::dump(ceph::Formatter *f) const
 {
-  f->open_object_section("utime");
   f->dump_int("seconds", tv.tv_sec);
   f->dump_int("nanoseconds", tv.tv_nsec);
-  f->close_section();
 }
 
 void utime_t::generate_test_instances(std::list<utime_t*>& o)
index 2d1eb19621912a3693ff02502cb7b9708d94c792..106fc1db586c84836a3d7738029ae82c7fc142a9 100644 (file)
 
 void uuid_d::dump(ceph::Formatter *f) const
 {
-  f->open_object_section("uuid_d");
-  {
-    f->dump_stream("uuid") << to_string();
-  }
-  f->close_section();
+  f->dump_stream("uuid") << to_string();
 }
 
 void uuid_d::generate_test_instances(std::list<uuid_d*>& o)
index 6b0a3ced15c696382b0986f5c14001107dc65dcc..c0b9cf65d909b52dedb254ec4fb52d84cf9f8a8b 100644 (file)
@@ -5624,7 +5624,7 @@ struct watch_item_t {
     }
     DECODE_FINISH(bl);
   }
-  void dump_bare(ceph::Formatter *f) const {
+  void dump(ceph::Formatter *f) const {
     f->dump_stream("watcher") << name;
     f->dump_int("cookie", cookie);
     f->dump_int("timeout", timeout_seconds);
@@ -5632,11 +5632,6 @@ struct watch_item_t {
     addr.dump(f);
     f->close_section();
   }
-  void dump(ceph::Formatter *f) const {
-    f->open_object_section("watch_item_t");
-    dump_bare(f);
-    f->close_section();
-  }
   static void generate_test_instances(std::list<watch_item_t*>& o) {
     entity_addr_t ea;
     ea.set_type(entity_addr_t::TYPE_LEGACY);
@@ -5682,7 +5677,7 @@ struct obj_list_watch_response_t {
     f->open_array_section("entries");
     for (std::list<watch_item_t>::const_iterator p = entries.begin(); p != entries.end(); ++p) {
       f->open_object_section("watch");
-      p->dump_bare(f);
+      p->dump(f);
       f->close_section();
     }
     f->close_section();