pgpool2.git / summary / log / commit / refs

commit    6ab5cecf7a7d230ce9caa28115e0a5f598bd4fff
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Thu Feb 23 07:05:11 2017 +0000

    Fix to release shared memory segments when Pgpool-II exits.
    
    Per bug272. From the bug report.
    "This cause the creation of a lot of segments if you start and stop
    pgpool continuously (and in a testing fase it could be normal). Lot of
    segments bring to reach the shmem OS configuration limit and than
    suddenly stops (pgpool) working."


src/utils/pool_shmem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/pool_shmem.c b/src/utils/pool_shmem.c index 1b8399bb4..71c5a9876 100644 --- a/src/utils/pool_shmem.c +++ b/src/utils/pool_shmem.c @@ -104,8 +104,10 @@ IpcMemoryDelete(int status, Datum shmId) if (shmctl(shmId, IPC_STAT, &shmStat) < 0 && (errno == EINVAL || errno == EACCES)) return; +#ifdef NOT_USED else if (shmStat.shm_nattch != 0) return; +#endif if (shmctl(shmId, IPC_RMID, NULL) < 0) ereport(LOG, [parent: e33b91ae2588]