aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2021-08-04 19:30:12 -0700
committerAndres Freund <andres@anarazel.de>2021-08-05 12:05:39 -0700
commit27f790346621e1db3cc0305e7ae2b2cbfb537aa6 (patch)
tree236a97f41d512085e498b582ec33c475d450b8dc /src
parent5aa4a9d2077fa902b4041245805082fec6be0648 (diff)
downloadpostgresql-27f790346621e1db3cc0305e7ae2b2cbfb537aa6.tar.gz
postgresql-27f790346621e1db3cc0305e7ae2b2cbfb537aa6.zip
process startup: auxprocess: reindent block
Kept separate for ease of review, particularly because pgindent insists on reflowing a few comments. 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')
-rw-r--r--src/backend/bootstrap/bootstrap.c66
1 files changed, 32 insertions, 34 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index 7d6a9d7448b..e2c01e56259 100644
--- a/src/backend/bootstrap/bootstrap.c
+++ b/src/backend/bootstrap/bootstrap.c
@@ -236,48 +236,46 @@ AuxiliaryProcessMain(AuxProcType auxtype)
* pushups, but there are a couple of things that need to get lit up even
* in an auxiliary process.
*/
- {
- /*
- * Create a PGPROC so we can use LWLocks. In the EXEC_BACKEND case,
- * this was already done by SubPostmasterMain().
- */
+
+ /*
+ * Create a PGPROC so we can use LWLocks. In the EXEC_BACKEND case, this
+ * was already done by SubPostmasterMain().
+ */
#ifndef EXEC_BACKEND
- InitAuxiliaryProcess();
+ InitAuxiliaryProcess();
#endif
- /*
- * Assign the ProcSignalSlot for an auxiliary process. Since it
- * doesn't have a BackendId, the slot is statically allocated based on
- * the auxiliary process type (MyAuxProcType). Backends use slots
- * indexed in the range from 1 to MaxBackends (inclusive), so we use
- * MaxBackends + AuxProcType + 1 as the index of the slot for an
- * auxiliary process.
- *
- * This will need rethinking if we ever want more than one of a
- * particular auxiliary process type.
- */
- ProcSignalInit(MaxBackends + MyAuxProcType + 1);
+ /*
+ * Assign the ProcSignalSlot for an auxiliary process. Since it doesn't
+ * have a BackendId, the slot is statically allocated based on the
+ * auxiliary process type (MyAuxProcType). Backends use slots indexed in
+ * the range from 1 to MaxBackends (inclusive), so we use MaxBackends +
+ * AuxProcType + 1 as the index of the slot for an auxiliary process.
+ *
+ * This will need rethinking if we ever want more than one of a particular
+ * auxiliary process type.
+ */
+ ProcSignalInit(MaxBackends + MyAuxProcType + 1);
- /* finish setting up bufmgr.c */
- InitBufferPoolBackend();
+ /* finish setting up bufmgr.c */
+ InitBufferPoolBackend();
- /*
- * Auxiliary processes don't run transactions, but they may need a
- * resource owner anyway to manage buffer pins acquired outside
- * transactions (and, perhaps, other things in future).
- */
- CreateAuxProcessResourceOwner();
+ /*
+ * Auxiliary processes don't run transactions, but they may need a
+ * resource owner anyway to manage buffer pins acquired outside
+ * transactions (and, perhaps, other things in future).
+ */
+ CreateAuxProcessResourceOwner();
- /* Initialize statistics reporting */
- pgstat_initialize();
+ /* Initialize statistics reporting */
+ pgstat_initialize();
- /* Initialize backend status information */
- pgstat_beinit();
- pgstat_bestart();
+ /* Initialize backend status information */
+ pgstat_beinit();
+ pgstat_bestart();
- /* register a before-shutdown callback for LWLock cleanup */
- before_shmem_exit(ShutdownAuxiliaryProcess, 0);
- }
+ /* register a before-shutdown callback for LWLock cleanup */
+ before_shmem_exit(ShutdownAuxiliaryProcess, 0);
SetProcessingMode(NormalProcessing);