Skip to content

Commit 6e91b9c

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 9fd989f commit 6e91b9c

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
@@ -421,8 +421,8 @@ pgstat_reset_database_timestamp(Oid dboid, TimestampTz ts)
421421
/*
422422
* Flush out pending stats for the entry
423423
*
424-
* If nowait is true, this function returns false if lock could not
425-
* immediately acquired, otherwise true is returned.
424+
* If nowait is true and the lock could not be immediately acquired, returns
425+
* false without flushing the entry. Otherwise returns true.
426426
*/
427427
bool
428428
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
@@ -806,8 +806,8 @@ pgstat_twophase_postabort(TransactionId xid, uint16 info,
806806
/*
807807
* Flush out pending stats for the entry
808808
*
809-
* If nowait is true, this function returns false if lock could not
810-
* immediately acquired, otherwise true is returned.
809+
* If nowait is true and the lock could not be immediately acquired, returns
810+
* false without flushing the entry. Otherwise returns true.
811811
*
812812
* Some of the stats are copied to the corresponding pending database stats
813813
* 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
@@ -96,8 +96,8 @@ pgstat_fetch_stat_subscription(Oid subid)
9696
/*
9797
* Flush out pending stats for the entry
9898
*
99-
* If nowait is true, this function returns false if lock could not
100-
* immediately acquired, otherwise true is returned.
99+
* If nowait is true and the lock could not be immediately acquired, returns
100+
* false without flushing the entry. Otherwise returns true.
101101
*/
102102
bool
103103
pgstat_subscription_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)

0 commit comments

Comments
 (0)