Skip to content

Commit 3c702b3

Browse files
committed
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.
1 parent 93fcf2d commit 3c702b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/activity/pgstat_shmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ pgstat_reset_entry(PgStat_Kind kind, Oid dboid, Oid objoid, TimestampTz ts)
920920
if (!entry_ref || entry_ref->shared_entry->dropped)
921921
return;
922922

923-
pgstat_lock_entry(entry_ref, false);
923+
(void) pgstat_lock_entry(entry_ref, false);
924924
shared_stat_reset_contents(kind, entry_ref->shared_stats, ts);
925925
pgstat_unlock_entry(entry_ref);
926926
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy