MEDIUM: init: handle arguments earlier

The argument parser runs too late, we'll soon need it before creating
pools, hence just after init_early(). No visible change is expected but
this part is sensitive enough to be placed into its own commit for easier
bisection later if needed.
This commit is contained in:
Willy Tarreau 2022-02-23 17:25:00 +01:00
parent 392524d222
commit 18f96d02d3

View File

@ -2942,13 +2942,13 @@ int main(int argc, char **argv)
/* now's time to initialize early boot variables */
init_early(argc, argv);
/* handles argument parsing */
init_args(argc, argv);
RUN_INITCALLS(STG_ALLOC);
RUN_INITCALLS(STG_POOL);
RUN_INITCALLS(STG_INIT);
/* handles argument parsing */
init_args(argc, argv);
/* this is the late init where the config is parsed */
init(argc, argv);