#define dout_prefix (*_dout << (debug_pg ? debug_pg->gen_prefix() : string()) << " PriorSet: ")
PG::PriorSet::PriorSet(const OSDMap &osdmap,
- const map<epoch_t, Interval> &past_intervals,
- const vector<int> &up,
- const vector<int> &acting,
- const PG::Info &info,
- PG *debug_pg)
+ const map<epoch_t, Interval> &past_intervals,
+ const vector<int> &up,
+ const vector<int> &acting,
+ const PG::Info &info,
+ const PG *debug_pg)
: crashed(false), pg_down(false)
{
/*
}
// true if the given map affects the prior set
-bool PG::PriorSet::affected_by_map(const OSDMap *osdmap, PG *debug_pg) const
+bool PG::PriorSet::affected_by_map(const OSDMap *osdmap, const PG *debug_pg) const
{
for (set<int>::iterator p = probe.begin();
p != probe.end();
bool crashed; /// true if past osd failures were such that clients may need to replay requests.
bool pg_down; /// some down osds are included in @cur; the DOWN pg state bit should be set.
PriorSet(const OSDMap &osdmap,
- const map<epoch_t, Interval> &past_intervals,
- const vector<int> &up,
- const vector<int> &acting,
- const Info &info,
- PG *debug_pg=0);
+ const map<epoch_t, Interval> &past_intervals,
+ const vector<int> &up,
+ const vector<int> &acting,
+ const Info &info,
+ const PG *debug_pg=NULL);
- bool affected_by_map(const OSDMap *osdmap, PG *debug_pg=0) const;
+ bool affected_by_map(const OSDMap *osdmap, const PG *debug_pg=0) const;
};
friend std::ostream& operator<<(std::ostream& oss,