fellow_cache: Fix seglist strategy

this wrong line counteracted fdb260e2 :(
parent 7a08cb09
......@@ -2860,7 +2860,7 @@ fellow_disk_seglist_alloc(struct fellow_busy *fbo,
return (FCR_ALLOCFAIL("seglist disk region"));
ofdsl->next = *fdr;
ldsegs = fellow_disk_seglist_fit(fdr->size);
assert(fellow_disk_seglist_fit(fdr->size) >= ldsegs);
reqs = BUDDY_REQS_STK(fbo->fc->membuddy, 2);
BUDDY_REQS_PRI(reqs, FEP_META);
......@@ -7063,7 +7063,7 @@ t_cache(const char *fn, unsigned chksum)
VSHA256_CTX sha256ctx;
unsigned char h1[SHA256_LEN];
struct stvfe_tune tune[1];
const size_t memsz = 10 * 1024 * 1024;
const size_t memsz = 20 * 1024 * 1024;
const size_t dsksz = 100 * 1024 * 1024;
const size_t objsize_hint = 4 * 1024;
struct fellow_cache_res fcr;
......@@ -7161,7 +7161,8 @@ t_cache(const char *fn, unsigned chksum)
break;
fcsl = fbo->body_seglist;
fcr = fellow_disk_seglist_alloc(fbo, fcsl, 1, FH_SHA256);
fcr = fellow_disk_seglist_alloc(fbo, fcsl,
fellow_busy_body_seglist_size_strategy(1, 12), FH_SHA256);
assert(fcr.status == fcr_ok);
CAST_OBJ_NOTNULL(fcsl, fcr.r.ptr, FELLOW_CACHE_SEGLIST_MAGIC);
u++;
......
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