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
+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);
}