]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use object section to dump watchers titles 15946/head
authorYan Jun <yan.jun8@zte.com.cn>
Tue, 27 Jun 2017 12:07:35 +0000 (20:07 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Tue, 27 Jun 2017 13:09:30 +0000 (21:09 +0800)
Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/osd/OSD.cc

index b14bbff6b6c4e016f90556e183cd56415074a546..7e11e17ed33438159194f4ece7dafa68c2d599c9 100644 (file)
@@ -2101,7 +2101,7 @@ bool OSD::asok_command(string admin_command, cmdmap_t& cmdmap, string format,
     for (list<obj_watch_item_t>::iterator it = watchers.begin();
        it != watchers.end(); ++it) {
 
-      f->open_array_section("watch");
+      f->open_object_section("watch");
 
       f->dump_string("namespace", it->obj.nspace);
       f->dump_string("object", it->obj.oid.name);