| От | Tom Lane |
|---|---|
| Тема | Re: Fix spinlock usage in UnpinBuffer() |
| Дата | |
| Msg-id | 21361.1135799789@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Fix spinlock usage in UnpinBuffer() (Qingqing Zhou <zhouqq@cs.toronto.edu>) |
| Ответы |
Re: Fix spinlock usage in UnpinBuffer()
|
| Список | pgsql-patches |
Qingqing Zhou <zhouqq@cs.toronto.edu> writes:
> There is no LWLock protecting the spinlock in UnpinBuffer(),
I don't believe this is necessary, and if it is necessary the patch
is wrong anyway. Because the code uses _NoHoldoff, there won't be
any check of InterruptPending in that segment of code. Furthermore,
any callers who don't have their own interrupt holdoff in force are
probably broken --- it's unlikely that the state of bufmgr is globally
correct if the caller of UnpinBuffer loses control.
Exactly which path of control are you worried about?
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера