Add simple http request function

This commit is contained in:
Vitaliy Filippov
2020-04-11 12:05:58 +03:00
parent 0880a77c1a
commit 298b013eae
6 changed files with 299 additions and 33 deletions
+5 -1
View File
@@ -480,6 +480,11 @@ resume_5:
pg_cancel_write_queue(pg, op_data->oid, op_data->epipe > 0 ? -EPIPE : -EIO);
return;
}
if (op_data->fact_ver == 1)
{
// Object is created
pg.clean_count++;
}
if (op_data->object_state)
{
if (op_data->object_state->state & OBJ_MISPLACED)
@@ -534,7 +539,6 @@ resume_8:
{
throw std::runtime_error("Invalid object state during recovery: "+std::to_string(op_data->object_state->state));
}
// FIXME: Track object count during normal writes, too
pg.clean_count++;
op_data->object_state->object_count--;
if (!op_data->object_state->object_count)