diff options
| author | Heikki Linnakangas | 2024-08-29 06:46:21 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2024-08-29 06:46:21 +0000 |
| commit | 478846e7688c9ab73d2695a66822e9ae0574b551 (patch) | |
| tree | 119f557cdd41e48f26ee5be37f93a95d8fe97b5e /src/backend/storage/ipc/procarray.c | |
| parent | fbce7dfc77eaa0d017dfee78c9d27b142d435e41 (diff) | |
Rename some shared memory initialization routines
To make them follow the usual naming convention where
FoobarShmemSize() calculates the amount of shared memory needed by
Foobar subsystem, and FoobarShmemInit() performs the initialization.
I didn't rename CreateLWLocks() and InitShmmeIndex(), because they are
a little special. They need to be called before any of the other
ShmemInit() functions, because they set up the shared memory
bookkeeping itself. I also didn't rename InitProcGlobal(), because
unlike other Shmeminit functions, it's not called by individual
backends.
Reviewed-by: Andreas Karlsson
Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'src/backend/storage/ipc/procarray.c')
| -rw-r--r-- | src/backend/storage/ipc/procarray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index af3b15e93df..36610a1c7e7 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -370,7 +370,7 @@ static inline FullTransactionId FullXidRelativeTo(FullTransactionId rel, static void GlobalVisUpdateApply(ComputeXidHorizonsResult *horizons); /* - * Report shared-memory space needed by CreateSharedProcArray. + * Report shared-memory space needed by ProcArrayShmemInit */ Size ProcArrayShmemSize(void) @@ -415,7 +415,7 @@ ProcArrayShmemSize(void) * Initialize the shared PGPROC array during postmaster startup. */ void -CreateSharedProcArray(void) +ProcArrayShmemInit(void) { bool found; |
