Fix wal_writer_flush_after initializer value.
authorThomas Munro <tmunro@postgresql.org>
Sun, 14 May 2023 22:45:19 +0000 (10:45 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sun, 14 May 2023 23:19:54 +0000 (11:19 +1200)
commit63932a6d38e5dfa6df2a51a04b7314ec1e4d3de7
tree38bf9c3cf2a270d717e198f4f5db8ffd77808078
parent319bae9a8da66678d80d862440e54cebc7b1cc24
Fix wal_writer_flush_after initializer value.

Commit a73952b7956 (new in 16) required default values in guc_table.c
and C variable initializers to match.  This one only matched when
XLOG_BLCKSZ == 8kB.  Fix by using the same expression in both places
with a new DEFAULT_XXX macro, as done for other GUCs.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGLNmLV=VrT==5MqnbARgx2ifRSFtdd8ofdfrdSLL3yv5A@mail.gmail.com
src/backend/postmaster/walwriter.c
src/backend/utils/misc/guc_tables.c
src/include/postmaster/walwriter.h