Re: BufFileRead() error signalling

Поиск
Список
Период
Сортировка
От Ibrar Ahmed
Тема Re: BufFileRead() error signalling
Дата
Msg-id 157598317991.13092.10640296975039971799.pgcf@coridan.postgresql.org
обсуждение исходный текст
Ответ на Re: BufFileRead() error signalling  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: BufFileRead() error signalling  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
You are checking file->dirty twice, first before calling the function and within the function too. Same for the Assert.
Forexample.
 
size_t
BufFileRead(BufFile *file, void *ptr, size_t size)
{   
     size_t      nread = 0;
     size_t      nthistime;
     if (file->dirty)
     {   
         BufFileFlush(file);
         Assert(!file->dirty);
     }
static void
 BufFileFlush(BufFile *file)
 {
     if (file->dirty)
         BufFileDumpBuffer(file);
     Assert(!file->dirty);

The new status of this patch is: Waiting on Author

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Karl O. Pinc"
Дата:
Сообщение: Re: proposal: minscale, rtrim, btrim functions for numeric
Следующее
От: Ranier Vilela
Дата:
Сообщение: RE: [Proposal] Level4 Warnings show many shadow vars