Re: Fix an incorrect assertion condition in mdwritev(). - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Fix an incorrect assertion condition in mdwritev().
Date
Msg-id ZlMYAYlNSZe8Wk5s@paquier.xyz
Whole thread Raw
In response to Re: Fix an incorrect assertion condition in mdwritev().  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sun, May 26, 2024 at 12:08:46AM -0400, Tom Lane wrote:
> After a few minutes' thought, how about:
>
>     Assert((uint64) blocknum + (uint64) nblocks <= (uint64) mdnblocks(reln, forknum));

LGTM.  Yeah that should be OK this way.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Junwang Zhao
Date:
Subject: Re: Improve conditional compilation for direct I/O alignment checks
Next
From: Andrew Dunstan
Date:
Subject: Re: Improving tracking/processing of buildfarm test failures