Fix pg_state_bits overwriting PG_HAS_CORRUPTED
This commit is contained in:
@@ -522,19 +522,19 @@ pg_osd_set_state_t* osd_t::add_object_to_set(pg_t & pg, const object_id oid, con
|
|||||||
{
|
{
|
||||||
this->incomplete_objects++;
|
this->incomplete_objects++;
|
||||||
obj_state |= OBJ_INCOMPLETE;
|
obj_state |= OBJ_INCOMPLETE;
|
||||||
pg_state_bits = PG_HAS_INCOMPLETE;
|
pg_state_bits |= PG_HAS_INCOMPLETE;
|
||||||
}
|
}
|
||||||
else if (n_roles < pg.pg_cursize)
|
else if (n_roles < pg.pg_cursize)
|
||||||
{
|
{
|
||||||
this->degraded_objects++;
|
this->degraded_objects++;
|
||||||
obj_state |= OBJ_DEGRADED;
|
obj_state |= OBJ_DEGRADED;
|
||||||
pg_state_bits = PG_HAS_DEGRADED;
|
pg_state_bits |= PG_HAS_DEGRADED;
|
||||||
}
|
}
|
||||||
else if (n_misplaced > 0 || n_outdated > 0)
|
else if (n_misplaced > 0 || n_outdated > 0)
|
||||||
{
|
{
|
||||||
this->misplaced_objects++;
|
this->misplaced_objects++;
|
||||||
obj_state |= OBJ_MISPLACED;
|
obj_state |= OBJ_MISPLACED;
|
||||||
pg_state_bits = PG_HAS_MISPLACED;
|
pg_state_bits |= PG_HAS_MISPLACED;
|
||||||
}
|
}
|
||||||
if (this->log_level >= log_at_level)
|
if (this->log_level >= log_at_level)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user