pgsql: Explicitly ignore guaranteed-true result from pgstat_lock_entry(

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Explicitly ignore guaranteed-true result from pgstat_lock_entry(
Дата
Msg-id E1ndxkO-0003JH-9r@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: fgetc() returns int, not char.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Tweak the default behavior of psql's \dconfig.