Fix creepy (osd_op_t*)(long) casts

This commit is contained in:
Vitaliy Filippov
2020-05-23 15:43:37 +03:00
parent f036eecf1c
commit 393fe75900
4 changed files with 14 additions and 7 deletions
+7
View File
@@ -231,6 +231,13 @@ void pg_obj_state_check_t::finish_object()
printf("Present on: osd %lu, role %ld%s\n", list[i].osd_num, (list[i].oid.stripe & STRIPE_MASK), list[i].is_stable ? " (stable)" : "");
}
}
if (log_level > 2)
{
for (int i = obj_start; i < obj_end; i++)
{
printf("v%lu present on: osd %lu, role %ld%s\n", list[i].version, list[i].osd_num, (list[i].oid.stripe & STRIPE_MASK), list[i].is_stable ? " (stable)" : "");
}
}
state = OBJ_DEGRADED;
pg->state = pg->state | PG_HAS_DEGRADED;
}