diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-29 09:46:06 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-29 09:46:06 +0300 |
commit | fbce7dfc77eaa0d017dfee78c9d27b142d435e41 (patch) | |
tree | f487307260e77e8dc67b7df72d29b42e0792a9f9 /src/backend/storage/ipc | |
parent | 9f87da1cffda0e07ff3babcfa84abe9e849ccd95 (diff) | |
download | postgresql-fbce7dfc77eaa0d017dfee78c9d27b142d435e41.tar.gz postgresql-fbce7dfc77eaa0d017dfee78c9d27b142d435e41.zip |
Refactor lock manager initialization to make it a bit less special
Split the shared and local initialization to separate functions, and
follow the common naming conventions. With this, we no longer create
the LockMethodLocalHash hash table in the postmaster process, which
was always pointless.
Reviewed-by: Andreas Karlsson
Discussion: https://www.postgresql.org/message-id/c09694ff-2453-47e5-b26c-32a16cd75ce6@iki.fi
Diffstat (limited to 'src/backend/storage/ipc')
-rw-r--r-- | src/backend/storage/ipc/ipci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index 35fa2e1dda6..8f8a89124e8 100644 --- a/src/backend/storage/ipc/ipci.c +++ b/src/backend/storage/ipc/ipci.c @@ -116,7 +116,7 @@ CalculateShmemSize(int *num_semaphores) size = add_size(size, dsm_estimate_size()); size = add_size(size, DSMRegistryShmemSize()); size = add_size(size, BufferShmemSize()); - size = add_size(size, LockShmemSize()); + size = add_size(size, LockManagerShmemSize()); size = add_size(size, PredicateLockShmemSize()); size = add_size(size, ProcGlobalShmemSize()); size = add_size(size, XLogPrefetchShmemSize()); @@ -291,7 +291,7 @@ CreateOrAttachShmemStructs(void) /* * Set up lock manager */ - InitLocks(); + LockManagerShmemInit(); /* * Set up predicate lock manager |