From 662bb8f430e7594e0729f91545727dd733842d37 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 15 Sep 2017 23:44:53 -0400 Subject: [PATCH] osd/PG: make read_state, peek_map_epoch public Signed-off-by: Sage Weil --- src/osd/PG.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/osd/PG.h b/src/osd/PG.h index 4c2c9365b7116..1654bd1acd6b7 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -352,6 +352,7 @@ public: return acting; } + /// initialize created PG void init( int role, const vector& 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 &log_entries, -- 2.39.5