Skip to content

Commit 8d2f858

Browse files
Etsuro Fujitadutow
Etsuro Fujita
authored andcommitted
Fix typos in comments.
Also adjust the phrasing in the comments. Author: Etsuro Fujita <etsuro.fujita@gmail.com> Author: Heikki Linnakangas <hlinnaka@iki.fi> Reviewed-by: Tender Wang <tndrwang@gmail.com> Reviewed-by: Gurjeet Singh <gurjeet@singh.im> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/CAPmGK17%3DPHSDZ%2B0G6jcj12buyyE1bQQc3sbp1Wxri7tODT-SDw%40mail.gmail.com Backpatch-through: 15
1 parent f72f099 commit 8d2f858

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/backend/utils/activity/pgstat_database.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ pgstat_reset_database_timestamp(Oid dboid, TimestampTz ts)
368368
/*
369369
* Flush out pending stats for the entry
370370
*
371-
* If nowait is true, this function returns false if lock could not
372-
* immediately acquired, otherwise true is returned.
371+
* If nowait is true and the lock could not be immediately acquired, returns
372+
* false without flushing the entry. Otherwise returns true.
373373
*/
374374
bool
375375
pgstat_database_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)

src/backend/utils/activity/pgstat_function.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ pgstat_end_function_usage(PgStat_FunctionCallUsage *fcu, bool finalize)
186186
/*
187187
* Flush out pending stats for the entry
188188
*
189-
* If nowait is true, this function returns false if lock could not
190-
* immediately acquired, otherwise true is returned.
189+
* If nowait is true and the lock could not be immediately acquired, returns
190+
* false without flushing the entry. Otherwise returns true.
191191
*/
192192
bool
193193
pgstat_function_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)

src/backend/utils/activity/pgstat_relation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ pgstat_twophase_postabort(TransactionId xid, uint16 info,
792792
/*
793793
* Flush out pending stats for the entry
794794
*
795-
* If nowait is true, this function returns false if lock could not
796-
* immediately acquired, otherwise true is returned.
795+
* If nowait is true and the lock could not be immediately acquired, returns
796+
* false without flushing the entry. Otherwise returns true.
797797
*
798798
* Some of the stats are copied to the corresponding pending database stats
799799
* entry when successfully flushing.

src/backend/utils/activity/pgstat_subscription.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ pgstat_fetch_stat_subscription(Oid subid)
8181
/*
8282
* Flush out pending stats for the entry
8383
*
84-
* If nowait is true, this function returns false if lock could not
85-
* immediately acquired, otherwise true is returned.
84+
* If nowait is true and the lock could not be immediately acquired, returns
85+
* false without flushing the entry. Otherwise returns true.
8686
*/
8787
bool
8888
pgstat_subscription_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)

0 commit comments

Comments
 (0)