Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
std::string pg_state_string(int state)
{
ostringstream oss;
+ if (state & PG_STATE_STALE)
+ oss << "stale+";
if (state & PG_STATE_CREATING)
oss << "creating+";
if (state & PG_STATE_ACTIVE)
//PG_STATE_SCANNING (1<<14) .. deprecated.
#define PG_STATE_BACKFILL (1<<15) // [active] backfilling pg content
#define PG_STATE_INCOMPLETE (1<<16) // incomplete content, peering failed.
+#define PG_STATE_STALE (1<<17) // our state for this pg is stale, unknown.
std::string pg_state_string(int state);