Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3c702b3

Browse files
committed
Explicitly ignore guaranteed-true result from pgstat_lock_entry().
With nowait passed as false, pgstat_lock_entry() must return trueso there's no need to check its result. Coverity seems unconvincedof this, so whack it upside the head with a (void) cast.
1 parent93fcf2d commit3c702b3

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)

[8]ページ先頭

©2009-2025 Movatter.jp