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
025121c5
Unverified
Commit
025121c5
authored
Dec 18, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For logbuffer_take, change order of events so the new logbuffer has...
... a chance to take memory from the old
parent
824b9c95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
fellow_log.c
src/fellow_log.c
+9
-6
No files found.
src/fellow_log.c
View file @
025121c5
...
...
@@ -2204,15 +2204,18 @@ logbuffer_init(struct fellow_fd *ffd, struct fellow_logbuffer *lbuf,
static
inline
void
logbuffer_take
(
struct
fellow_logbuffer
*
to
,
struct
fellow_logbuffer
*
from
)
{
logbuffer_fini_dskpool_mem
(
from
);
BUDDY_POOL_FINI
(
from
->
mempool
);
BUDDY_POOL_FINI
(
from
->
ffpool
);
logbuffer_wait_flush_fini
(
from
);
TAKE
(
*
to
,
*
from
)
;
BUDDY_POOL_INIT
(
to
->
mempool
,
to
->
membuddy
,
*
to
=
*
from
;
BUDDY_POOL_INIT
(
to
->
mempool
,
from
->
membuddy
,
logbuffer_fill_mempool
,
to
);
BUDDY_POOL_INIT
(
to
->
ffpool
,
to
->
membuddy
,
BUDDY_POOL_INIT
(
to
->
ffpool
,
from
->
membuddy
,
logbuffer_fill_ffpool
,
to
);
logbuffer_fini_dskpool_mem
(
from
);
BUDDY_POOL_FINI
(
from
->
mempool
);
BUDDY_POOL_FINI
(
from
->
ffpool
);
memset
(
from
,
0
,
sizeof
*
from
);
}
static
struct
fellow_disk_log_block
*
...
...
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