Skip to content

Commit 8209a3a

Browse files
author
Etsuro Fujita
committed
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 6ba979c commit 8209a3a

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
@@ -365,8 +365,8 @@ pgstat_reset_database_timestamp(Oid dboid, TimestampTz ts)
365365
/*
366366
* Flush out pending stats for the entry
367367
*
368-
* If nowait is true, this function returns false if lock could not
369-
* immediately acquired, otherwise true is returned.
368+
* If nowait is true and the lock could not be immediately acquired, returns
369+
* false without flushing the entry. Otherwise returns true.
370370
*/
371371
bool
372372
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
@@ -752,8 +752,8 @@ pgstat_twophase_postabort(TransactionId xid, uint16 info,
752752
/*
753753
* Flush out pending stats for the entry
754754
*
755-
* If nowait is true, this function returns false if lock could not
756-
* immediately acquired, otherwise true is returned.
755+
* If nowait is true and the lock could not be immediately acquired, returns
756+
* false without flushing the entry. Otherwise returns true.
757757
*
758758
* Some of the stats are copied to the corresponding pending database stats
759759
* 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
@@ -77,8 +77,8 @@ pgstat_fetch_stat_subscription(Oid subid)
7777
/*
7878
* Flush out pending stats for the entry
7979
*
80-
* If nowait is true, this function returns false if lock could not
81-
* immediately acquired, otherwise true is returned.
80+
* If nowait is true and the lock could not be immediately acquired, returns
81+
* false without flushing the entry. Otherwise returns true.
8282
*/
8383
bool
8484
pgstat_subscription_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)

0 commit comments

Comments
 (0)