From: Samuel Just Date: Fri, 30 Aug 2013 01:15:43 +0000 (-0700) Subject: ReplicatedPG: pass on dump_recovery_info to PGBackend X-Git-Tag: v0.71~68^2~30 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=30ac934e22e4686b326609371a8c362ebfbfc075;p=ceph.git ReplicatedPG: pass on dump_recovery_info to PGBackend Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 427e50e283c..32300222b05 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -616,54 +616,17 @@ protected: f->close_section(); } { - f->open_array_section("pull_from_peer"); - for (map >::const_iterator i = pull_from_peer.begin(); - i != pull_from_peer.end(); + f->open_array_section("recovering"); + for (set::const_iterator i = recovering.begin(); + i != recovering.end(); ++i) { - f->open_object_section("pulling_from"); - f->dump_int("pull_from", i->first); - { - f->open_array_section("pulls"); - for (set::const_iterator j = i->second.begin(); - j != i->second.end(); - ++j) { - f->open_object_section("pull_info"); - assert(pulling.count(*j)); - pulling.find(*j)->second.dump(f); - f->close_section(); - } - f->close_section(); - } - f->close_section(); + f->dump_stream("object") << *i; } f->close_section(); } { - f->open_array_section("pushing"); - for (map >::const_iterator i = - pushing.begin(); - i != pushing.end(); - ++i) { - f->open_object_section("object"); - f->dump_stream("pushing") << i->first; - { - f->open_array_section("pushing_to"); - for (map::const_iterator j = i->second.begin(); - j != i->second.end(); - ++j) { - f->open_object_section("push_progress"); - f->dump_stream("object_pushing") << j->first; - { - f->open_object_section("push_info"); - j->second.dump(f); - f->close_section(); - } - f->close_section(); - } - f->close_section(); - } - f->close_section(); - } + f->open_object_section("pg_backend"); + pgbackend->dump_recovery_info(f); f->close_section(); } }