pgsql: Explicitly ignore guaranteed-true result from pgstat_lock_entry( - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Explicitly ignore guaranteed-true result from pgstat_lock_entry(
Date
Msg-id E1ndxkO-0003JH-9r@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: fgetc() returns int, not char.
Next
From: Tom Lane
Date:
Subject: pgsql: Tweak the default behavior of psql's \dconfig.