]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap.cc: fix "osd_epochs" section of dump_basic 14996/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 8 May 2017 13:43:52 +0000 (21:43 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 8 May 2017 13:43:52 +0000 (21:43 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/PGMap.cc

index 3c9311043000f67fccaaf47c60f652e7d3a6500b..ac7ba802bdd948284a942cd23aa2f826d75f9f16 100644 (file)
@@ -718,7 +718,7 @@ void PGMap::dump_basic(Formatter *f) const
   osd_sum.dump(f);
   f->close_section();
 
-  f->open_object_section("osd_epochs");
+  f->open_array_section("osd_epochs");
   for (ceph::unordered_map<int32_t,epoch_t>::const_iterator p =
          osd_epochs.begin(); p != osd_epochs.end(); ++p) {
     f->open_object_section("osd");