]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: make init() public
authorSage Weil <sage@redhat.com>
Sat, 16 Sep 2017 03:15:19 +0000 (23:15 -0400)
committerSage Weil <sage@redhat.com>
Fri, 6 Oct 2017 18:08:17 +0000 (13:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.h

index 5bb432615ff37ac36a347abe20d2e0cec7409025..0d9ce47fc79833bcf1b7dd92bc8e8c42332d3e6c 100644 (file)
@@ -352,6 +352,17 @@ public:
     return acting;
   }
 
+  void init(
+    int role,
+    const vector<int>& up,
+    int up_primary,
+    const vector<int>& acting,
+    int acting_primary,
+    const pg_history_t& history,
+    const PastIntervals& pim,
+    bool backfill,
+    ObjectStore::Transaction *t);
+
   void rm_backoff(BackoffRef b);
 
   void scrub(epoch_t queued, ThreadPool::TPHandle &handle);
@@ -2506,17 +2517,6 @@ protected:
 
   bool is_empty() const { return info.last_update == eversion_t(0,0); }
 
-  void init(
-    int role,
-    const vector<int>& up,
-    int up_primary,
-    const vector<int>& acting,
-    int acting_primary,
-    const pg_history_t& history,
-    const PastIntervals& pim,
-    bool backfill,
-    ObjectStore::Transaction *t);
-
   // pg on-disk state
   void do_pending_flush();