]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: re-add get_num_pgs()
authorSage Weil <sage@redhat.com>
Mon, 9 Apr 2018 16:39:25 +0000 (11:39 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 3 Jul 2019 00:08:52 +0000 (20:08 -0400)
We removed this but it's a useful accessor.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit b116d2140871e0bb6d562cb3303ad3116145d55d)

src/osd/OSD.h

index 5e5a1d3be1e8e132b50a2a35d25774dc73ddf55d..a24febee61f09a688d8ec3bb803d4b0626bb61bc 100644 (file)
@@ -1832,6 +1832,9 @@ public:
   void dec_num_pgs() {
     --num_pgs;
   }
+  int get_num_pgs() const {
+    return num_pgs;
+  }
 
 protected:
   // -- placement groups --