Re: pg_amcheck contrib application

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема Re: pg_amcheck contrib application
Дата
Msg-id AB13E5D4-513F-4489-84B0-543EA5C4C2CD@enterprisedb.com
обсуждение исходный текст
Ответ на Re: pg_amcheck contrib application  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pg_amcheck contrib application
Список pgsql-hackers

> On Apr 30, 2021, at 11:56 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>
> Can you review this version?

It looks mostly good to me.  There is a off-by-one error introduced with:

-   else if (chunkno != (endchunk + 1))
+   else if (expected_chunk_seq < last_chunk_seq)

I think that needs to be

+  else if (expected_chunk_seq <= last_chunk_seq)

because otherwise it won't complain if the only missing chunk is the very last one.

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company






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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: pg_amcheck contrib application
Следующее
От: Robert Haas
Дата:
Сообщение: Re: pg_amcheck contrib application