Adapt to new cache lock API

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2019-05-15 20:10:19 +02:00
parent 8d59e41e20
commit 23e330a21f
5 changed files with 59 additions and 28 deletions

View File

@@ -27,7 +27,7 @@ struct cas_mpool *cas_mpool_create(uint32_t hdr_size, uint32_t size, int flags,
result = snprintf(name, sizeof(name), "%s_%u", name_perfix,
(1 << i));
if (result < 0 || result >= sizeof(name))
goto cas_multi_allocator_create_ERROR;
goto err;
mpool->allocator[i] = env_allocator_create(
hdr_size + (size * (1 << i)), name);