| От | Qingqing Zhou |
|---|---|
| Тема | Re: Race conditions, race conditions! |
| Дата | |
| Msg-id | ddua5i$79h$1@news.hub.org обсуждение исходный текст |
| Ответ на | Re: Race conditions, race conditions! (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Race conditions, race conditions!
|
| Список | pgsql-hackers |
"Tom Lane" <tgl@sss.pgh.pa.us> writes:
>
> This is entirely likely to find the same non-BM_VALID buffer that was
> assigned in the first iteration.
>
So after we found it, we still need to extend the file. In ReadBuffer():
---/* if it was already in the buffer pool, we're done */if (found){ ... return BufferDescriptorGetBuffer(bufHdr);}
/* ... so future attempts ... come right back here to * try smgrextend again. */
---
Shall we write
/* If it was already in the buffer pool and not for extension, we're
done */ if (found && !isExtend)
instead?
Regards,
Qingqing
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера