mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
OSDMap::dump: tag pg_temp mappings with pgid
Signed-off-by: Samuel Just <sam.just@inktank.com> Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
0dd1302543
commit
212f6b56d1
@ -1298,10 +1298,13 @@ void OSDMap::dump(Formatter *f) const
|
||||
for (map<pg_t,vector<int> >::const_iterator p = pg_temp->begin();
|
||||
p != pg_temp->end();
|
||||
p++) {
|
||||
f->open_object_section("osds");
|
||||
f->dump_stream("pgid") << p->first;
|
||||
f->open_array_section("osds");
|
||||
for (vector<int>::const_iterator q = p->second.begin(); q != p->second.end(); ++q)
|
||||
f->dump_int("osd", *q);
|
||||
f->close_section();
|
||||
f->close_section();
|
||||
}
|
||||
f->close_section();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user