mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Cosmetic fixups for WAL usage work.
Reported-by: Justin Pryzby and Euler Taveira Author: Justin Pryzby and Julien Rouhaud Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/CAB-hujrP8ZfUkvL5OYETipQwA=e3n7oqHFU=4ZLxWS_Cza3kQQ@mail.gmail.com
This commit is contained in:
@ -248,7 +248,7 @@ WalUsageAdd(WalUsage *dst, WalUsage *add)
|
||||
{
|
||||
dst->wal_bytes += add->wal_bytes;
|
||||
dst->wal_records += add->wal_records;
|
||||
dst->wal_num_fpw += add->wal_num_fpw;
|
||||
dst->wal_fpw += add->wal_fpw;
|
||||
}
|
||||
|
||||
void
|
||||
@ -256,5 +256,5 @@ WalUsageAccumDiff(WalUsage *dst, const WalUsage *add, const WalUsage *sub)
|
||||
{
|
||||
dst->wal_bytes += add->wal_bytes - sub->wal_bytes;
|
||||
dst->wal_records += add->wal_records - sub->wal_records;
|
||||
dst->wal_num_fpw += add->wal_num_fpw - sub->wal_num_fpw;
|
||||
dst->wal_fpw += add->wal_fpw - sub->wal_fpw;
|
||||
}
|
||||
|
Reference in New Issue
Block a user