summaryrefslogtreecommitdiff
path: root/src/backend/utils/activity/pgstat_replslot.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-04-04 12:14:34 -0700
committerAndres Freund <andres@anarazel.de>2022-04-04 13:53:34 -0700
commitedadf8098f4b2ca50bcc449f8857d0cc960b3c90 (patch)
tree710ed7455f85bf13e140aeff83b987b132014eea /src/backend/utils/activity/pgstat_replslot.c
parent4e34747c88a03ede6e9d731727815e37273d4bc9 (diff)
pgstat: consistent function comment formatting.
There was a wild mishmash of function comment formatting in pgstat, making it hard to know what to use for any new function and hard to extend existing comments (particularly due to randomly different forms of indentation). Author: Andres Freund <andres@anarazel.de> Reviewed-By: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/20220329191727.mzzwbl7udhpq7pmf@alap3.anarazel.de Discussion: https://postgr.es/m/20220308205351.2xcn6k4x5yivcxyd@alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/activity/pgstat_replslot.c')
-rw-r--r--src/backend/utils/activity/pgstat_replslot.c34
1 files changed, 11 insertions, 23 deletions
diff --git a/src/backend/utils/activity/pgstat_replslot.c b/src/backend/utils/activity/pgstat_replslot.c
index 2d575b6e5c1..a9405cd135e 100644
--- a/src/backend/utils/activity/pgstat_replslot.c
+++ b/src/backend/utils/activity/pgstat_replslot.c
@@ -22,15 +22,12 @@
#include "utils/pgstat_internal.h"
-/* ----------
- * pgstat_reset_replslot_counter() -
+/*
+ * Tell the statistics collector to reset a single replication slot
+ * counter, or all replication slots counters (when name is null).
*
- * Tell the statistics collector to reset a single replication slot
- * counter, or all replication slots counters (when name is null).
- *
- * Permission checking for this function is managed through the normal
- * GRANT system.
- * ----------
+ * Permission checking for this function is managed through the normal
+ * GRANT system.
*/
void
pgstat_reset_replslot_counter(const char *name)
@@ -53,11 +50,8 @@ pgstat_reset_replslot_counter(const char *name)
pgstat_send(&msg, sizeof(msg));
}
-/* ----------
- * pgstat_report_replslot() -
- *
- * Tell the collector about replication slot statistics.
- * ----------
+/*
+ * Tell the collector about replication slot statistics.
*/
void
pgstat_report_replslot(const PgStat_StatReplSlotEntry *repSlotStat)
@@ -82,11 +76,8 @@ pgstat_report_replslot(const PgStat_StatReplSlotEntry *repSlotStat)
pgstat_send(&msg, sizeof(PgStat_MsgReplSlot));
}
-/* ----------
- * pgstat_report_replslot_create() -
- *
- * Tell the collector about creating the replication slot.
- * ----------
+/*
+ * Tell the collector about creating the replication slot.
*/
void
pgstat_report_replslot_create(const char *slotname)
@@ -100,11 +91,8 @@ pgstat_report_replslot_create(const char *slotname)
pgstat_send(&msg, sizeof(PgStat_MsgReplSlot));
}
-/* ----------
- * pgstat_report_replslot_drop() -
- *
- * Tell the collector about dropping the replication slot.
- * ----------
+/*
+ * Tell the collector about dropping the replication slot.
*/
void
pgstat_report_replslot_drop(const char *slotname)