From 7f6bfb21c4c008ee620a1cc283a8a7d0a52e2a06 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 9 Apr 2018 11:39:25 -0500 Subject: [PATCH] osd: re-add get_num_pgs() We removed this but it's a useful accessor. Signed-off-by: Sage Weil (cherry picked from commit b116d2140871e0bb6d562cb3303ad3116145d55d) --- src/osd/OSD.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 5e5a1d3be1e8e..a24febee61f09 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -1832,6 +1832,9 @@ public: void dec_num_pgs() { --num_pgs; } + int get_num_pgs() const { + return num_pgs; + } protected: // -- placement groups -- -- 2.39.5