Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
15ea6057
Unverified
Commit
15ea6057
authored
Feb 06, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache: Fix seglist strategy
this wrong line counteracted
fdb260e2
:(
parent
7a08cb09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
fellow_cache.c
src/fellow_cache.c
+4
-3
No files found.
src/fellow_cache.c
View file @
15ea6057
...
...
@@ -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
=
1
0
*
1024
*
1024
;
const size_t memsz =
2
0 * 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++;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment