@@ -265,7 +265,7 @@ typedef struct TwoPhasePgStatRecord
265
265
PgStat_Counter deleted_pre_truncdrop ;
266
266
Oid t_id ; /* table's OID */
267
267
bool t_shared ; /* is it a shared catalog? */
268
- bool t_truncdropped ; /* was the relation truncated/dropped? */
268
+ bool t_truncdropped ; /* was the relation truncated/dropped? */
269
269
} TwoPhasePgStatRecord ;
270
270
271
271
/*
@@ -2622,11 +2622,11 @@ AtEOSubXact_PgStat_Relations(PgStat_SubXactStatus *xact_state, bool isCommit, in
2622
2622
{
2623
2623
/*
2624
2624
* When there isn't an immediate parent state, we can just
2625
- * reuse the record instead of going through a
2626
- * palloc/pfree pushup (this works since it's all in
2627
- * TopTransactionContext anyway). We have to re-link it
2628
- * into the parent level, though, and that might mean
2629
- * pushing a new entry into the pgStatXactStack.
2625
+ * reuse the record instead of going through a palloc/pfree
2626
+ * pushup (this works since it's all in TopTransactionContext
2627
+ * anyway). We have to re-link it into the parent level,
2628
+ * though, and that might mean pushing a new entry into the
2629
+ * pgStatXactStack.
2630
2630
*/
2631
2631
PgStat_SubXactStatus * upper_xact_state ;
2632
2632
@@ -3352,9 +3352,9 @@ pgstat_send_wal(bool force)
3352
3352
WalUsage walusage ;
3353
3353
3354
3354
/*
3355
- * Calculate how much WAL usage counters were increased by
3356
- * subtracting the previous counters from the current ones. Fill the
3357
- * results in WAL stats message.
3355
+ * Calculate how much WAL usage counters were increased by subtracting
3356
+ * the previous counters from the current ones. Fill the results in
3357
+ * WAL stats message.
3358
3358
*/
3359
3359
MemSet (& walusage , 0 , sizeof (WalUsage ));
3360
3360
WalUsageAccumDiff (& walusage , & pgWalUsage , & prevWalUsage );
@@ -4211,7 +4211,7 @@ pgstat_read_statsfiles(Oid onlydb, bool permanent, bool deep)
4211
4211
bool found ;
4212
4212
const char * statfile = permanent ? PGSTAT_STAT_PERMANENT_FILENAME : pgstat_stat_filename ;
4213
4213
int i ;
4214
- TimestampTz ts ;
4214
+ TimestampTz ts ;
4215
4215
4216
4216
/*
4217
4217
* The tables will live in pgStatLocalContext.
@@ -4473,7 +4473,7 @@ pgstat_read_statsfiles(Oid onlydb, bool permanent, bool deep)
4473
4473
PgStat_StatSubEntry * subentry ;
4474
4474
4475
4475
if (fread (& subbuf , 1 , sizeof (PgStat_StatSubEntry ), fpin )
4476
- != sizeof (PgStat_StatSubEntry ))
4476
+ != sizeof (PgStat_StatSubEntry ))
4477
4477
{
4478
4478
ereport (pgStatRunningInCollector ? LOG : WARNING ,
4479
4479
(errmsg ("corrupted statistics file \"%s\"" ,
@@ -5250,6 +5250,7 @@ pgstat_recv_tabstat(PgStat_MsgTabstat *msg, int len)
5250
5250
tabentry -> tuples_updated += tabmsg -> t_counts .t_tuples_updated ;
5251
5251
tabentry -> tuples_deleted += tabmsg -> t_counts .t_tuples_deleted ;
5252
5252
tabentry -> tuples_hot_updated += tabmsg -> t_counts .t_tuples_hot_updated ;
5253
+
5253
5254
/*
5254
5255
* If table was truncated/dropped, first reset the live/dead
5255
5256
* counters.
@@ -5412,7 +5413,10 @@ pgstat_recv_resetsharedcounter(PgStat_MsgResetsharedcounter *msg, int len)
5412
5413
{
5413
5414
if (msg -> m_resettarget == RESET_BGWRITER )
5414
5415
{
5415
- /* Reset the global, bgwriter and checkpointer statistics for the cluster. */
5416
+ /*
5417
+ * Reset the global, bgwriter and checkpointer statistics for the
5418
+ * cluster.
5419
+ */
5416
5420
memset (& globalStats , 0 , sizeof (globalStats ));
5417
5421
globalStats .bgwriter .stat_reset_timestamp = GetCurrentTimestamp ();
5418
5422
}
0 commit comments