CLEANUP: applet: make appctx_new() initialize the whole appctx
authorWilly Tarreau <w@1wt.eu>
Thu, 5 May 2022 17:55:03 +0000 (19:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit009e42bc59709b032ad7d1c3f5c0310c4bb0b5bf
treef8a332783530b164e9b32d5a26342fbd41f40fb7
parentf12f32a0fa4e4bd8b5b66c64bfd0569e8d563a4b
CLEANUP: applet: make appctx_new() initialize the whole appctx

Till now, appctx_new() used to allocate an entry from the pool and
pass it through appctx_init() to initialize a debatable part of it that
didn't correspond anymore to the comments, and fill other fields. It's
hard to say what is fully initialized and what is not.

Let's get rid of that, and always zero the initialization (appctx are
not that big anyway, even with the cache there's no difference in
performance), and initialize what remains. this is cleaner and more
resistant to new field additions.

The appctx_init() function was removed.
src/applet.c