]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Update OSDMapMapping to work without using namespace
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 00:34:26 +0000 (20:34 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 29 Mar 2019 14:30:34 +0000 (10:30 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/osd/OSDMapMapping.cc
src/osd/OSDMapMapping.h

index 6640d83dd8ac7480cb9e68f4e10de42b48ebae7c..d92625f4f277d608b5ab85910fb0c13949aa0584 100644 (file)
@@ -93,11 +93,11 @@ void OSDMapMapping::_finish(const OSDMap& osdmap)
 void OSDMapMapping::_dump()
 {
   for (auto& p : pools) {
-    cout << "pool " << p.first << std::endl;
+    std::cout << "pool " << p.first << std::endl;
     for (unsigned i = 0; i < p.second.table.size(); ++i) {
-      cout << " " << p.second.table[i];
+      std::cout << " " << p.second.table[i];
       if (i % p.second.row_size() == p.second.row_size() - 1)
-       cout << std::endl;
+       std::cout << std::endl;
     }
   }
 }
@@ -113,7 +113,7 @@ void OSDMapMapping::_update_range(
   ceph_assert(pg_begin <= pg_end);
   ceph_assert(pg_end <= i->second.pg_num);
   for (unsigned ps = pg_begin; ps < pg_end; ++ps) {
-    vector<int> up, acting;
+    std::vector<int> up, acting;
     int up_primary, acting_primary;
     osdmap.pg_to_up_acting_osds(
       pg_t(ps, pool),
index 9ceef9ff0664cae03172e6881af2ae14234767e8..965797db7ad0d6a07eae36fdb14c2c019f19d735 100644 (file)
@@ -301,7 +301,7 @@ public:
     auto p = pools.find(pgid.pool());
     ceph_assert(p != pools.end());
     ceph_assert(pgid.ps() < p->second.pg_num);
-    vector<int> acting;
+    std::vector<int> acting;
     p->second.get(pgid.ps(), nullptr, nullptr, &acting, acting_primary);
     if (p->second.erasure) {
       for (uint8_t i = 0; i < acting.size(); ++i) {