Re: [Bug Report + Patch] File descriptor leak when io_method=io_uring
В списке pgsql-hackers по дате отправления:
| От | cca5507 |
|---|---|
| Тема | Re: [Bug Report + Patch] File descriptor leak when io_method=io_uring |
| Дата | |
| Msg-id | tencent_FA41A8DD67685DE1576D508AAACC129EFA06@qq.com обсуждение |
| Ответ на | [Bug Report + Patch] File descriptor leak when io_method=io_uring (Lucas DRAESCHER <git@draescher.fr>) |
| Ответы |
Re: [Bug Report + Patch] File descriptor leak when io_method=io_uring
|
| Список | pgsql-hackers |
Hi, Thanks for the report! I can reproduce this bug on master and your patch fixes it. > I've attached a patch which registers an on_shmem_exit() callback > to close the file descriptors on server exit. I took inspiration > from how src/backend/storage/aio/method_worker.c handles cleanup. I also verify that only the postmaster will call this callback because all children of the postmaster will reset postmaster's callback. My another thought is that add a shmem_cleanup callback to IoMethodOps and do cleanup in this callback. Not sure which is better. -- Regards, ChangAo Chen
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера