Do not retry successful operation parts in client (could lead to "double free" bugs)

rdma-v2
Vitaliy Filippov 2023-01-25 01:30:36 +03:00
parent 0385b2f9e8
commit 8b552a01f9
1 changed files with 4 additions and 1 deletions

View File

@ -757,7 +757,10 @@ resume_3:
{
for (int i = 0; i < op->parts.size(); i++)
{
op->parts[i].flags = PART_RETRY;
if (!(op->parts[i].flags & PART_DONE))
{
op->parts[i].flags = PART_RETRY;
}
}
goto resume_2;
}