projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c9ce71
)
MINOR: errors: use ring_dup() to duplicate the startup_logs
author
Willy Tarreau
<w@1wt.eu>
Tue, 27 Feb 2024 18:52:50 +0000
(19:52 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000
(17:34 +0000)
In startup_logs_dup() we currently need to reference the ring's buffer,
better not do this as it will complicate operations when switching to
other types.
src/errors.c
patch
|
blob
|
history
diff --git
a/src/errors.c
b/src/errors.c
index
c851de3
..
5aeb6a4
100644
(file)
--- a/
src/errors.c
+++ b/
src/errors.c
@@
-210,8
+210,7
@@
struct ring *startup_logs_dup(struct ring *src)
if (!dst)
goto error;
- b_reset(&dst->buf);
- b_ncat(&dst->buf, &src->buf, ring_data(src));
+ ring_dup(dst, src, ring_size(src));
error:
return dst;
}