mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
MINOR: errors: use ring_dup() to duplicate the startup_logs
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.
This commit is contained in:
parent
7c9ce715c9
commit
a75052d665
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue