]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: add get_pool()
authorSage Weil <sage@redhat.com>
Mon, 18 Sep 2017 19:05:00 +0000 (14:05 -0500)
committerSage Weil <sage@redhat.com>
Fri, 6 Oct 2017 18:08:18 +0000 (13:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/PG.h

index f6e6734bbbfbb50f98f898def5f693bb279341e1..d59d59221652e219145125b203163d1d4e283b23 100644 (file)
@@ -7916,7 +7916,7 @@ void OSD::split_pgs(
       *i,
       split_bits,
       i->ps(),
-      &child->pool.info,
+      &child->get_pool().info,
       rctx->transaction);
     parent->split_into(
       i->pgid,
index 3443e9ae90639442b365005bda78dc3a049691cb..3c7ab6584038f11ac830d4006ed0fa52c78affc8 100644 (file)
@@ -320,6 +320,9 @@ public:
     return pg_id;
   }
 
+  const PGPool& get_pool() const {
+    return pool;
+  }
   uint64_t get_last_user_version() const {
     return info.last_user_version;
   }