From: | Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Noah Misch <noah(at)leadboat(dot)com>, Peter Geoghegan <pg(at)bowt(dot)ie>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru>, Stephen Frost <sfrost(at)snowman(dot)net>, Michael Paquier <michael(at)paquier(dot)xyz>, Amul Sul <sulamul(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_amcheck contrib application |
Date: | 2021-04-30 19:26:36 |
Message-ID: | AB13E5D4-513F-4489-84B0-543EA5C4C2CD@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On Apr 30, 2021, at 11:56 AM, Robert Haas <robertmhaas(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2021-04-30 19:29:40 | Re: pg_amcheck contrib application |
Previous Message | Mark Dilger | 2021-04-30 19:21:09 | Re: pg_amcheck contrib application |