Re: Fix an incorrect assertion condition in mdwritev().

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Xing Guo <higuoxing(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Fix an incorrect assertion condition in mdwritev().
Date: 2024-05-26 11:07:45
Message-ID: ZlMYAYlNSZe8Wk5s@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2024-05-26 11:44:11 Re: Improving tracking/processing of buildfarm test failures
Previous Message Junwang Zhao 2024-05-26 10:35:10 Re: Improve conditional compilation for direct I/O alignment checks