]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mds/SnapServer.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / mds / SnapServer.cc
index f6881d8ec1ed59c78e4b6abf8fd7699d6c57bd15..f1648003585d689ac984dacc41bd746743114b99 100644 (file)
@@ -418,9 +418,9 @@ void SnapServer::dump(Formatter *f) const
 
   f->open_object_section("need_to_purge");
   for (map<int, set<snapid_t> >::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<snapid_t>::const_iterator s = i->second.begin(); s != i->second.end(); ++s) {
       f->dump_unsigned("snapid", s->val);
     }