Commit cdb97cb
committed
MEDIUM: server: split srv_init() in srv_preinit() + srv_postinit()
We actually need more granularity to split srv postparsing init tasks:
Some of them are required to be run BEFORE the config is checked, and
some of them AFTER the config is checked.
Thus we push the logic from 368d013 ("MEDIUM: server: add and use
srv_init() function") a little bit further and split the function
in two distinct ones, one of them executed under check_config_validity()
and the other one using REGISTER_POST_SERVER_CHECK() hook.
SRV_F_CHECKED flag was removed because it is no longer needed,
srv_preinit() is only called once, and so is srv_postinit().1 parent 9736221 commit cdb97cb
4 files changed
+31
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2824 | 2824 | | |
2825 | 2825 | | |
2826 | 2826 | | |
2827 | | - | |
| 2827 | + | |
2828 | 2828 | | |
2829 | 2829 | | |
2830 | 2830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3363 | 3363 | | |
3364 | 3364 | | |
3365 | 3365 | | |
3366 | | - | |
| 3366 | + | |
3367 | 3367 | | |
3368 | 3368 | | |
3369 | 3369 | | |
| |||
3427 | 3427 | | |
3428 | 3428 | | |
3429 | 3429 | | |
3430 | | - | |
| 3430 | + | |
| 3431 | + | |
| 3432 | + | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
3431 | 3451 | | |
3432 | 3452 | | |
3433 | 3453 | | |
| |||
3437 | 3457 | | |
3438 | 3458 | | |
3439 | 3459 | | |
3440 | | - | |
3441 | | - | |
| 3460 | + | |
3442 | 3461 | | |
3443 | 3462 | | |
3444 | 3463 | | |
3445 | | - | |
3446 | | - | |
3447 | | - | |
3448 | 3464 | | |
3449 | 3465 | | |
3450 | 3466 | | |
| |||
3474 | 3490 | | |
3475 | 3491 | | |
3476 | 3492 | | |
3477 | | - | |
3478 | | - | |
3479 | | - | |
3480 | | - | |
3481 | | - | |
3482 | | - | |
3483 | 3493 | | |
3484 | 3494 | | |
3485 | 3495 | | |
| |||
3492 | 3502 | | |
3493 | 3503 | | |
3494 | 3504 | | |
3495 | | - | |
3496 | | - | |
3497 | 3505 | | |
3498 | 3506 | | |
3499 | | - | |
| 3507 | + | |
3500 | 3508 | | |
3501 | 3509 | | |
3502 | 3510 | | |
| |||
6181 | 6189 | | |
6182 | 6190 | | |
6183 | 6191 | | |
6184 | | - | |
| 6192 | + | |
| 6193 | + | |
| 6194 | + | |
| 6195 | + | |
6185 | 6196 | | |
6186 | 6197 | | |
6187 | 6198 | | |
| |||
0 commit comments