Fix a small memory leak and BS_OP_SYNC mishandling, now fio does not hang during primary-osd test

This commit is contained in:
Vitaliy Filippov
2020-02-28 01:46:39 +03:00
parent 1733de2db6
commit 2be4824a7a
9 changed files with 91 additions and 30 deletions
+4 -1
View File
@@ -171,9 +171,12 @@ int blockstore_impl_t::continue_sync(blockstore_op_t *op)
else
{
PRIV(op)->sync_state = SYNC_DONE;
ack_sync(op);
}
}
if (PRIV(op)->sync_state == SYNC_DONE)
{
ack_sync(op);
}
return 1;
}