1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Fix wal_writer_flush_after initializer value.

Commit a73952b795 (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
This commit is contained in:
Thomas Munro
2023-05-15 10:45:19 +12:00
parent 319bae9a8d
commit 63932a6d38
3 changed files with 4 additions and 2 deletions

View File

@@ -68,7 +68,7 @@
* GUC parameters
*/
int WalWriterDelay = 200;
int WalWriterFlushAfter = 128;
int WalWriterFlushAfter = DEFAULT_WAL_WRITER_FLUSH_AFTER;
/*
* Number of do-nothing loops before lengthening the delay time, and the