Fix mark_partial_write for replicas (TODO: try to write an OSD unit test for it)

This commit is contained in:
Vitaliy Filippov
2026-05-18 01:17:56 +03:00
parent 4e2724b28f
commit 572b20fedc
5 changed files with 51 additions and 31 deletions
+6 -1
View File
@@ -263,11 +263,16 @@ resume_12:
else
{
pg.ver_override.erase(op_data->oid);
mark_partial_write(pg, op_data->oid, op_data->object_state, op_data->stripes, true);
mark_partial_write(pg, cur_op);
pg_cancel_write_queue(pg, cur_op, op_data->oid, op_data->errcode);
return;
}
}
if (op_data->subops)
{
delete[] op_data->subops;
op_data->subops = NULL;
}
pg.ver_override.erase(op_data->oid);
deref_object_state(pg, &op_data->object_state, true);
pg_cancel_write_queue(pg, cur_op, op_data->oid, op_data->errcode);