Also adjust the phrasing in the comments.
Author: Etsuro Fujita <
[email protected]>
Author: Heikki Linnakangas <
[email protected]>
Reviewed-by: Tender Wang <[email protected]>
Reviewed-by: Gurjeet Singh <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Discussion: https://postgr.es/m/CAPmGK17%3DPHSDZ%2B0G6jcj12buyyE1bQQc3sbp1Wxri7tODT-SDw%40mail.gmail.com
Backpatch-through: 15
/*
* Flush out pending stats for the entry
*
- * If nowait is true, this function returns false if lock could not
- * immediately acquired, otherwise true is returned.
+ * If nowait is true and the lock could not be immediately acquired, returns
+ * false without flushing the entry. Otherwise returns true.
*/
bool
pgstat_database_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)
/*
* Flush out pending stats for the entry
*
- * If nowait is true, this function returns false if lock could not
- * immediately acquired, otherwise true is returned.
+ * If nowait is true and the lock could not be immediately acquired, returns
+ * false without flushing the entry. Otherwise returns true.
*/
bool
pgstat_function_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)
/*
* Flush out pending stats for the entry
*
- * If nowait is true, this function returns false if lock could not
- * immediately acquired, otherwise true is returned.
+ * If nowait is true and the lock could not be immediately acquired, returns
+ * false without flushing the entry. Otherwise returns true.
*
* Some of the stats are copied to the corresponding pending database stats
* entry when successfully flushing.
/*
* Flush out pending stats for the entry
*
- * If nowait is true, this function returns false if lock could not
- * immediately acquired, otherwise true is returned.
+ * If nowait is true and the lock could not be immediately acquired, returns
+ * false without flushing the entry. Otherwise returns true.
*/
bool
pgstat_subscription_flush_cb(PgStat_EntryRef *entry_ref, bool nowait)