| От | Tom Lane |
|---|---|
| Тема | Re: fd.c: flush data problems on osx |
| Дата | |
| Msg-id | 27703.1460583881@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: fd.c: flush data problems on osx (Andres Freund <andres@anarazel.de>) |
| Ответы |
Re: fd.c: flush data problems on osx
|
| Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes:
> I'm not entirely sure what
> + /*
> + * Caution: do not call pg_flush_data with amount = 0, it could trash the
> + * file's seek position.
> + */
> + if (amount <= 0)
> + return;
> +
> is about?
fd.c tracks seek position for open files. I'm not sure that that
function can get called with amount == 0, but if it did, the caller
would certainly not be expecting the file position to change.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера