]> 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)
committerSage Weil <sage@redhat.com>
Wed, 15 Aug 2018 22:18:42 +0000 (17:18 -0500)
We removed this but it's a useful accessor.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.h

index 18739f52dfa89d3eae3bda9c8e1785ef04f822ca..195c8dac634bd27b5dd8836127906bc90e0e3d45 100644 (file)
@@ -1840,6 +1840,9 @@ public:
   void dec_num_pgs() {
     --num_pgs;
   }
+  int get_num_pgs() const {
+    return num_pgs;
+  }
 
 protected:
   // -- placement groups --