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
d99cb0b6
Unverified
Commit
d99cb0b6
authored
Jan 19, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache: fix obj_chg threshold - include del_thin
parent
9c82b0aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
fellow_log.c
src/fellow_log.c
+7
-5
No files found.
src/fellow_log.c
View file @
d99cb0b6
...
...
@@ -5877,7 +5877,7 @@ fellow_logwatcher_need_openlog(const struct fellow_logbuffer *lbuf,
const struct dle_stats *s;
float ratio;
unsigned alive, n, a;
size_t sz;
size_t sz
, sum
;
// XXX config
const unsigned thr_logregion_rewrite_pct = 50;
...
...
@@ -5933,11 +5933,12 @@ fellow_logwatcher_need_openlog(const struct fellow_logbuffer *lbuf,
*/
sz = logbuffer_max_obj_chg(lbuf);
sum = s->obj_del_thin;
sum += s->obj_chg;
if (s
->obj_chg
>= sz) {
if (s
um
>= sz) {
if (why) {
bprintf(why->s, "obj_chg %u > %zu",
s->obj_chg, sz);
bprintf(why->s, "dle_chg %zu > %zu", sum, sz);
}
return (FLW_NEED_REWRITE);
}
...
...
@@ -6778,7 +6779,8 @@ fellow_log_dle_submit(struct fellow_fd *ffd,
* underway, wait for the new log to appear
*/
if (prep->dle_stats.obj_chg > 0 &&
ffd->logbuf->dle_stats.obj_chg
((size_t)ffd->logbuf->dle_stats.obj_chg +
ffd->logbuf->dle_stats.obj_del_thin)
>= logbuffer_max_obj_chg(ffd->logbuf)) {
if (ffd->rewriting) {
AZ(pthread_cond_wait(&ffd->new_logbuf_cond,
...
...
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