mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
Move the shared memory size calculation to its own function
This change refactors the shared memory size calculation in CreateSharedMemoryAndSemaphores() to its own function. This is intended for use in a future change related to the setup of huge pages and shared memory with some GUCs, while useful on its own for extensions. Author: Nathan Bossart Discussion: https://postgr.es/m/F2772387-CE0F-46BF-B5F1-CC55516EB885@amazon.com
This commit is contained in:
@@ -77,6 +77,7 @@ extern void check_on_shmem_exit_lists_are_empty(void);
|
||||
/* ipci.c */
|
||||
extern PGDLLIMPORT shmem_startup_hook_type shmem_startup_hook;
|
||||
|
||||
extern Size CalculateShmemSize(int *num_semaphores);
|
||||
extern void CreateSharedMemoryAndSemaphores(void);
|
||||
|
||||
#endif /* IPC_H */
|
||||
|
||||
Reference in New Issue
Block a user