Add missing refcounting for flush_batch errors

This commit is contained in:
Vitaliy Filippov
2024-11-09 00:46:38 +03:00
parent 1ce4b1b417
commit 141cec2383
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -7,6 +7,12 @@
bool osd_t::check_write_queue(osd_op_t *cur_op, pg_t & pg)
{
osd_primary_op_data_t *op_data = cur_op->op_data;
// First check if PG is not active anymore
if (!(pg.state & PG_ACTIVE))
{
pg_cancel_write_queue(pg, cur_op, op_data->oid, -EPIPE);
return false;
}
// Check if actions are pending for this object
auto act_it = pg.flush_actions.lower_bound((obj_piece_id_t){
.oid = op_data->oid,