fellow cache: Use objsize_hint to estimate chunked size

Fixes the second part of #60
parent 73e1d6b7
......@@ -5098,6 +5098,8 @@ fellow_busy_obj_getspace(struct fellow_busy *fbo, size_t *sz, uint8_t **ptr)
chunksize = (size_t)1 << fbo->fc->tune->chunk_exponent;
assert(chunksize <= FIO_MAX);
if (*sz == 0)
*sz = fbo->fc->tune->objsize_hint;
if (*sz == 0)
*sz = chunksize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment