MINOR: chunks: Use dedicated function to init/deinit trash buffers
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Jul 2017 12:59:46 +0000 (14:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Sep 2017 08:22:20 +0000 (10:22 +0200)
commit748919a4c75495bc6464e82b52dd9b71cbbc23ca
treec3e6eb9925ddd599a14317c4b04540514e5dc119
parent6c57dc9145f05ea3be76bba588e2a4d8e2ed40b7
MINOR: chunks: Use dedicated function to init/deinit trash buffers

Now, we use init_trash_buffers and deinit_trash_buffers to, respectively,
initialize and deinitialize trash buffers (trash, trash_buf1 and trash_buf2).

These functions have been introduced to be used by threads, to deal with
thread-local trash buffers.
include/common/chunk.h
src/cfgparse.c
src/chunk.c
src/haproxy.c