]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: make read_state, peek_map_epoch public
authorSage Weil <sage@redhat.com>
Sat, 16 Sep 2017 03:44:53 +0000 (23:44 -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 4c2c9365b71166a42a1854bd4590e51e88961221..1654bd1acd6b7cc59b72143ac62f5b0bbdc2bb0a 100644 (file)
@@ -352,6 +352,7 @@ public:
     return acting;
   }
 
+  /// initialize created PG
   void init(
     int role,
     const vector<int>& up,
@@ -363,6 +364,10 @@ public:
     bool backfill,
     ObjectStore::Transaction *t);
 
+  /// read existing pg state off disk
+  void read_state(ObjectStore *store);
+  static int peek_map_epoch(ObjectStore *store, spg_t pgid, epoch_t *pepoch);
+
   void rm_backoff(BackoffRef b);
 
   void scrub(epoch_t queued, ThreadPool::TPHandle &handle);
@@ -2571,12 +2576,8 @@ public:
     ObjectStore *store, spg_t pgid, const coll_t &coll,
     pg_info_t &info, PastIntervals &past_intervals,
     __u8 &);
-protected:
-  void read_state(ObjectStore *store);
-public:
   static bool _has_removal_flag(ObjectStore *store, spg_t pgid);
-  static int peek_map_epoch(ObjectStore *store, spg_t pgid,
-                           epoch_t *pepoch);
+
 protected:
   void update_snap_map(
     const vector<pg_log_entry_t> &log_entries,