Fix copy-pasto with process count calculation in method_io_uring.c This commit replaces the formula used for "TotalProcs" with a call to pgaio_uring_procs() in pgaio_uring_shmem_init() for the shared memory initialization, which is exactly the same, removing a duplication.
pgaio_uring_procs() is used for shared memory sizing and a sanity check, and it has some documentation explaining some reasoning behind the formula. Author: Japin Li <japi...@hotmail.com> Discussion: https://postgr.es/m/me0p300mb044521067a1edda9edec3793b6...@me0p300mb0445.ausp300.prod.outlook.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b87163e5f3847730ee5f59718d215c6e63e13bff Modified Files -------------- src/backend/storage/aio/method_io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)