Delete pg.peering_state when it is not needed

This commit is contained in:
Vitaliy Filippov
2026-06-13 19:56:06 +03:00
parent 1834743a0e
commit 11a972cbfb
2 changed files with 13 additions and 4 deletions
+2
View File
@@ -473,6 +473,8 @@ void pg_t::calc_object_states(int log_level)
printf("[PG %u/%u] %ju objects on OSD set %s\n", pool_id, pg_num, stp.second.object_count, osd_set_desc.c_str());
}
}
delete ps;
peering_state = NULL;
}
void pg_t::print_state()
+11 -4
View File
@@ -667,9 +667,16 @@ resume_2:
// I/O and checksum errors (represented by stripes[i].read_error) are OK
(cur_op->op_data->errcode != -EIO && cur_op->op_data->errcode != -EDOM))
{
finish_op(cur_op, cur_op->op_data->errcode);
return;
}
scrub_check_results(cur_op);
finish_op(cur_op, 0);
else
{
scrub_check_results(cur_op);
cur_op->op_data->errcode = 0;
}
if (cur_op->op_data->stripes)
{
free(cur_op->op_data->stripes);
cur_op->op_data->stripes = NULL;
}
finish_op(cur_op, cur_op->op_data->errcode);
}