pgsql: Explicitly ignore guaranteed-true result from pgstat_lock_entry(

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Explicitly ignore guaranteed-true result from pgstat_lock_entry(
Date: 2022-04-11 17:22:40
Message-ID: E1ndxkO-0003JH-9r@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Explicitly ignore guaranteed-true result from pgstat_lock_entry().

With nowait passed as false, pgstat_lock_entry() must return true
so there's no need to check its result. Coverity seems unconvinced
of this, so whack it upside the head with a (void) cast.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c702b3ed1519624d50e7a42283b8d481a579f77

Modified Files
--------------
src/backend/utils/activity/pgstat_shmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2022-04-11 18:00:34 Re: API stability
Previous Message Tom Lane 2022-04-11 17:15:52 pgsql: fgetc() returns int, not char.