role(0),
state(0),
need_up_thru(false),
+ need_flush(false),
last_peering_reset(0),
+ heartbeat_peer_lock("PG::heartbeat_peer_lock"),
backfill_target(-1),
pg_stats_lock("PG::pg_stats_lock"),
pg_stats_valid(false),
bool is_empty() const { return info.last_update == eversion_t(0,0); }
+ void init(int role, vector<int>& up, vector<int>& acting, pg_history_t& history,
+ ObjectStore::Transaction *t);
+
// pg on-disk state
+ void do_pending_flush();
+
void write_info(ObjectStore::Transaction& t);
void write_log(ObjectStore::Transaction& t);