diff options
| author | Andres Freund | 2021-08-05 02:29:45 +0000 |
|---|---|---|
| committer | Andres Freund | 2021-08-05 19:03:30 +0000 |
| commit | 5aa4a9d2077fa902b4041245805082fec6be0648 (patch) | |
| tree | ff04bb68b20c2480ffb55ab49214a830249cb63b /src/backend/main | |
| parent | 50017f77722b8b998ead5ca6fdb0b821fe7a34d2 (diff) | |
process startup: Separate out BootstrapModeMain from AuxiliaryProcessMain.
There practically was no shared code between the two, once all the ifs are
removed. And it was quite confusing that aux processes weren't actually
started by the call to AuxiliaryProcessMain() in main().
There's more to do, AuxiliaryProcessMain() should move out of bootstrap.c, and
BootstrapModeMain() shouldn't use/be part of AuxProcType.
Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Reviewed-By: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/20210802164124.ufo5buo4apl6yuvs@alap3.anarazel.de
Diffstat (limited to 'src/backend/main')
| -rw-r--r-- | src/backend/main/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c index e58e24a646..78ec85861e 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -198,7 +198,7 @@ main(int argc, char *argv[]) #endif if (argc > 1 && strcmp(argv[1], "--boot") == 0) - AuxiliaryProcessMain(argc, argv); /* does not return */ + BootstrapModeMain(argc, argv); /* does not return */ else if (argc > 1 && strcmp(argv[1], "--describe-config") == 0) GucInfoMain(); /* does not return */ else if (argc > 1 && strcmp(argv[1], "--single") == 0) |
