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
+1 -1
View File
@@ -420,7 +420,7 @@ void blockstore_impl_t::process_list(blockstore_op_t *op)
// Allocate memory
op->version = stable_count;
op->retval = total_count;
op->buf = memalign(MEM_ALIGNMENT, sizeof(obj_ver_id) * total_count);
op->buf = malloc(sizeof(obj_ver_id) * total_count);
if (!op->buf)
{
op->retval = -ENOMEM;