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
ca0e1e1e
Unverified
Commit
ca0e1e1e
authored
Jul 05, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache_test: Rename test limits
parent
896d1040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
fellow_cache.c
src/fellow_cache.c
+10
-10
No files found.
src/fellow_cache.c
View file @
ca0e1e1e
...
...
@@ -2754,8 +2754,8 @@ fellow_busy_region_free(struct fellow_busy *fbo, struct buddy_off_extent *fdr)
}
#ifdef TEST_DRIVER
static
uint16_t
XXX
_LIMIT_LDSEGS
=
0
;
static
unsigned
XXX
_LIMIT_SEG_BITS
=
0
;
static
uint16_t
TEST
_LIMIT_LDSEGS
=
0
;
static
unsigned
TEST
_LIMIT_SEG_BITS
=
0
;
#endif
static
uint16_t
...
...
@@ -2830,8 +2830,8 @@ fellow_busy_body_seglist_alloc(struct fellow_busy *fbo,
#ifdef TEST_DRIVER
if
(
XXX
_LIMIT_LDSEGS
>
0
)
ldsegs
=
XXX
_LIMIT_LDSEGS
;
if
(
TEST
_LIMIT_LDSEGS
>
0
)
ldsegs
=
TEST
_LIMIT_LDSEGS
;
#endif
return
(
...
...
@@ -4982,8 +4982,8 @@ fellow_busy_seg_memalloc(struct fellow_busy *fbo,
bits
=
log2up
(
fds
->
seg
.
size
);
#ifdef TEST_DRIVER
if
(
XXX_LIMIT_SEG_BITS
>
0
&&
bits
>
XXX
_LIMIT_SEG_BITS
)
bits
=
XXX
_LIMIT_SEG_BITS
;
if
(
TEST_LIMIT_SEG_BITS
>
0
&&
bits
>
TEST
_LIMIT_SEG_BITS
)
bits
=
TEST
_LIMIT_SEG_BITS
;
#endif
assert
(
bits
>=
MIN_FELLOW_BITS
);
assert
(
bits
<=
INT8_MAX
);
...
...
@@ -7054,8 +7054,8 @@ t_busyobj(unsigned chksum, struct fellow_cache *fc, uint16_t limit_ldsegs, unsig
DBG
(
"concurrent test_iter thread %p"
,
PP
(
iter_thr
->
thr
));
u
=
fco
->
fcsl
->
fdsl
->
lsegs
+
72
*
2
;
XXX
_LIMIT_LDSEGS
=
limit_ldsegs
;
XXX
_LIMIT_SEG_BITS
=
limit_seg_bits
;
TEST
_LIMIT_LDSEGS
=
limit_ldsegs
;
TEST
_LIMIT_SEG_BITS
=
limit_seg_bits
;
while
(
u
--
>
0
)
{
void
*
p
;
sz
=
1234
;
...
...
@@ -7072,8 +7072,8 @@ t_busyobj(unsigned chksum, struct fellow_cache *fc, uint16_t limit_ldsegs, unsig
if
(
u
&
1
)
usleep
(
100
);
}
XXX
_LIMIT_LDSEGS
=
0
;
XXX
_LIMIT_SEG_BITS
=
0
;
TEST
_LIMIT_LDSEGS
=
0
;
TEST
_LIMIT_SEG_BITS
=
0
;
VSHA256_Final
(
h1
,
&
sha256ctx
);
// test trim of a 0-sized busy fcs
AZ
(
fellow_busy_obj_getspace
(
fbo
,
&
sz
,
(
uint8_t
**
)
&
ptr
).
status
);
...
...
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