X-Git-Url: https://git.proxmox.com/?p=ceph.git;a=blobdiff_plain;f=ceph%2Fsrc%2Fmds%2FSnapServer.cc;h=f1648003585d689ac984dacc41bd746743114b99;hp=f6881d8ec1ed59c78e4b6abf8fd7699d6c57bd15;hb=f67539c23b11f3b8a2ecaeeddf7a403ae1c442a8;hpb=64a4c04e6850c6d9086e4c37f57c4eada541b05e diff --git a/ceph/src/mds/SnapServer.cc b/ceph/src/mds/SnapServer.cc index f6881d8ec..f16480035 100644 --- a/ceph/src/mds/SnapServer.cc +++ b/ceph/src/mds/SnapServer.cc @@ -418,9 +418,9 @@ void SnapServer::dump(Formatter *f) const f->open_object_section("need_to_purge"); for (map >::const_iterator i = need_to_purge.begin(); i != need_to_purge.end(); ++i) { - stringstream pool_id; - pool_id << i->first; - f->open_array_section(pool_id.str().c_str()); + CachedStackStringStream css; + *css << i->first; + f->open_array_section(css->strv()); for (set::const_iterator s = i->second.begin(); s != i->second.end(); ++s) { f->dump_unsigned("snapid", s->val); }