]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/os/kstore/kstore_types.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / os / kstore / kstore_types.cc
index 07270374183ea7f91c68181076738e7972e3a339..885c52b6037a7407b0bd7647696b66279c9230e0 100644 (file)
 #include "common/Formatter.h"
 #include "include/stringify.h"
 
+using std::list;
+
+using ceph::bufferlist;
+using ceph::Formatter;
+
 // cnode_t
 
 void kstore_cnode_t::encode(bufferlist& bl) const
@@ -80,8 +85,7 @@ void kstore_onode_t::dump(Formatter *f) const
   f->dump_unsigned("nid", nid);
   f->dump_unsigned("size", size);
   f->open_object_section("attrs");
-  for (map<string,bufferptr>::const_iterator p = attrs.begin();
-       p != attrs.end(); ++p) {
+  for (auto p = attrs.begin(); p != attrs.end(); ++p) {
     f->open_object_section("attr");
     f->dump_string("name", p->first);
     f->dump_unsigned("len", p->second.length());